-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dynamic resource suffix in Airlock #3243
base: main
Are you sure you want to change the base?
Support dynamic resource suffix in Airlock #3243
Conversation
…created before the field was introduced
Unit Test Results617 tests 608 ✅ 8s ⏱️ For more details on these failures, see this check. Results for commit 736233c. ♻️ This comment has been updated with latest results. |
@@ -18,7 +18,7 @@ class RequestProperties(BaseModel): | |||
new_status: str | |||
previous_status: Optional[str] | |||
type: str | |||
workspace_id: str | |||
unique_identifier_suffix: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Across much of this change, isn't the unique_identifier_suffix always the workspace one?
If so, shouldn't we call it like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
… where appropriate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
@yuvalyaron @tamirkamara can you recall where this got to? We are hitting some storage account name conflicts on the airlock accounts...
This needs to include say the |
This PR depends on another large development we paused for now. It looks for a workspace property that notes the random suffix of resource names like the storage accounts. |
Resolves #3237
What is being addressed
The code in the airlock processor references certain storage accounts by assuming that their names have the workspace short ID as a suffix. Rather than making this assumption, the suffix was changed to be passed in the 'status changed' message.
Added Migration to add the
unique_identifier_suffix
field to all resources. As the changes in Workspace deploy fails because storage account is not unique #2893 expect this field to exist in all resources. The value that the migration is adding is the last 4 digits of the resource as this was the value that we used before the changes.How is this addressed
unique_identifier_suffix
field.unique_identifier_suffix
in airlock processor