-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor: Update prefix logic in DA #372
Conversation
/run pipeline |
Please find the Plan output . |
The As per the test terraform will execute the following actions: Update the resource_group, kms_policy , cos_policy, en_kms_integration, cos_instance, en_cos_integration and en_instance Destroy the existing kms_key, kms_key_ring, cos_key, cos_key_ring ,root_key_policy resources and cos_bucket. Create new instances of kms_key, kms_key_ring, cos_key, cos_key_ring and root_key_policy resources. Since removing the prefix won't result in a breaking change for the user, So as per the discussion it is fine to skip the upgrade test in this scenario. |
/run pipeline |
/run pipeline |
Plan output for reference: If providing prefix as
if providing prefix as
|
The justification for skipping the upgrade test appears to be because it will delete resources. That is not a valid justification, the test is specifically to catch that case. In a simple use case the consumer uses the DA from the module in schematics and deploys and starts using the infrastructure. To keep current they upgrade the version and it deletes the event notifications and cos instance and re-creates new ones. |
@shemau upgrade tests are failing because we are changing the default value of
Let me know your thoughts. |
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.
This appears to be consistent with what is being done elsewhere, eg. terraform-ibm-modules/terraform-ibm-icd-elasticsearch#388.
There are use cases, where using the solution without specifying a prefix will see the service instance deleted and re-created.
@arya-girish-k would be good if we can use |
/run pipeline |
/run pipeline |
🎉 This PR is included in version 1.16.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
Refactored the code logic for prefix variable by adding default value for prefix and marked as required in catalog manifest.Also allowed prefix to be "" (empty string) for advanced users.
#11959
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
Add the default value for prefix variable and mark as required in catalog manifest. Also allowed prefix to be "" (empty string ). The addition of a default value for the prefix variable has caused a failure in the TestRunUpgradeDASolution. However, if users remove the prefix, it will not result in a breaking change.
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers