-
Notifications
You must be signed in to change notification settings - Fork 0
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
SKIP UPGRADE TEST #259
SKIP UPGRADE TEST #259
Conversation
/run pipeline |
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.
see comments (please also update the title of the PR)
module "crn_parser" { | ||
source = "terraform-ibm-modules/common-utilities/ibm//modules/crn-parser" | ||
version = "1.1.0" | ||
crn = var.kms_key_crn |
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.
kms_key_crn
is optional. Meaning it could have a value of null
. Meaning this module call would fail. You need to add a count around it to ensure its only called if kms_key_crn
is not null
main.tf
Outdated
@@ -7,15 +13,11 @@ locals { | |||
validate_kms_values = !var.kms_encryption_enabled && (var.existing_kms_instance_guid != null || var.kms_key_crn != null) ? tobool("When passing values for var.existing_kms_instance_guid or/and var.kms_key_crn, you must set var.kms_encryption_enabled to true. Otherwise unset them to use default encryption") : true | |||
# tflint-ignore: terraform_unused_declarations | |||
validate_kms_vars = var.kms_encryption_enabled && (var.existing_kms_instance_guid == null || var.kms_key_crn == null) ? tobool("When setting var.kms_encryption_enabled to true, a value must be passed for var.existing_kms_instance_guid and var.kms_key_crn") : true | |||
kms_service = module.crn_parser.service_name | |||
kms_account_id = module.crn_parser.account_id | |||
kms_key_id = module.crn_parser.resource |
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.
again your going to need ternary logic here, as the crn parser module wshould only be called if kms_key_crn
is not null.
If it is null, just default these locals to null
too as they wont be used
/run pipeline |
@Vipin654 please do not commit updates to common-dev-assets git submodule in your PRs, as you will end up with a conflict (like you have now) since we have other renovate automation that handles updating the git submodule in the repos. |
/run pipeline |
/run pipeline |
Description
Scope Policy to Exact KMS Key
Git Issue
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
Scope Policy to Exact KMS Key
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