Skip to content

Conversation

@imprateeksh
Copy link
Member

@imprateeksh imprateeksh commented Feb 19, 2025

Description

There was a small bug in the validation logic where the dns zone name was not expecting any null value. This was seen when consumed this module as an optional value in landing zone.

Issue - 919

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content
  • Updated the validation logic for DNS Zone name.
  • Bumped terraform version to 1.9.0

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.

@imprateeksh
Copy link
Member Author

/run pipeline

@imprateeksh
Copy link
Member Author

/run pipeline

@rajatagarwal-ibm
Copy link
Member

Once this is merged and a new release is created, then make sure to bump SLZ as well, otherwise, all the SLZ PRs will fail until renovate bump them over the weekend.

@imprateeksh
Copy link
Member Author

/run pipeline

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

The whole point of moving to 1.9 was so you can use cross variable referencing validation, but it seems you did not add any? You need to add validation to ensure that dns_zone_name is not null when user has set enable_hub to true and skip_custom_resolver_hub_creation to flase

@imprateeksh
Copy link
Member Author

imprateeksh commented Feb 20, 2025

The whole point of moving to 1.9 was so you can use cross variable referencing validation, but it seems you did not add any? You need to add validation to ensure that dns_zone_name is not null when user has set enable_hub to true and skip_custom_resolver_hub_creation to flase

I remember the suggestion you told but I thought we will be tackling all cross reference variables in a separate issue. I added one another condition for dns_zone to include cross referencing of variable same as in count.

@imprateeksh
Copy link
Member Author

/run pipeline

@imprateeksh
Copy link
Member Author

/run pipeline

@imprateeksh
Copy link
Member Author

/run pipeline

@imprateeksh imprateeksh requested a review from ocofaigh February 20, 2025 13:17
@ocofaigh ocofaigh merged commit e06cd8a into main Feb 20, 2025
2 checks passed
@ocofaigh ocofaigh deleted the fix-validation branch February 20, 2025 13:20
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 7.20.1 🎉

The release is available on GitHub release

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