Skip to content

Conversation

@jor2
Copy link
Member

@jor2 jor2 commented Jan 7, 2025

Description

there is a bug with variable validation referencing incorrect variable.

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

fix bug with variable validation.

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:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

@jor2 jor2 self-assigned this Jan 7, 2025
@jor2
Copy link
Member Author

jor2 commented Jan 7, 2025

/run pipeline

Comment on lines 171 to 178
validation {
condition = anytrue([
var.backup_encryption_key_crn == null,
can(regex(".*kms.*", var.kms_key_crn)),
can(regex(".*hs-crypto.*", var.kms_key_crn)),
can(regex(".*kms.*", var.backup_encryption_key_crn)),
can(regex(".*hs-crypto.*", var.backup_encryption_key_crn)),
])
error_message = "Value must be the KMS key CRN from a Key Protect or Hyper Protect Crypto Services instance in one of the supported backup regions."
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this whole validation provide any value. It will always be validated in the main module.

@jor2
Copy link
Member Author

jor2 commented Jan 7, 2025

/run pipeline

Copy link
Contributor

@shemau shemau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be changing common-dev-assets.

Jordan-Williams2 added 3 commits January 7, 2025 22:31
@jor2
Copy link
Member Author

jor2 commented Jan 7, 2025

/run pipeline

@jor2 jor2 requested a review from shemau January 7, 2025 22:40
@jor2
Copy link
Member Author

jor2 commented Jan 7, 2025

/run pipeline

Copy link
Contributor

@shemau shemau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daniel-butler-irl daniel-butler-irl merged commit 54cf5c5 into main Jan 8, 2025
2 checks passed
@daniel-butler-irl daniel-butler-irl deleted the fix-validation branch January 8, 2025 13:43
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.25.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants