Skip to content
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

feat: add workaround for groups #464

Merged
merged 4 commits into from
Nov 29, 2024
Merged

feat: add workaround for groups #464

merged 4 commits into from
Nov 29, 2024

Conversation

jor2
Copy link
Member

@jor2 jor2 commented Nov 21, 2024

Description

#452

Release required?

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

Add workaround to ignore groups config when provisioning instance using backup CRN

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 Nov 21, 2024
@jor2 jor2 requested review from akocbek and shemau as code owners November 21, 2024 11:16
@jor2
Copy link
Member Author

jor2 commented Nov 21, 2024

/run pipeline

main.tf Outdated
@@ -132,7 +132,7 @@ resource "ibm_database" "redis_database" {

## This block is for if host_flavor IS NOT set
dynamic "group" {
for_each = local.host_flavor_set ? [] : [1]
for_each = local.host_flavor_set && var.backup_crn == null ? [] : [1]
Copy link
Contributor

Choose a reason for hiding this comment

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

That logic was wrong and later improved in postgresql to:

for_each = local.host_flavor_set == false && !local.recovery_mode ? [1] : []

Without pitr I think it needs to be

for_each = local.host_flavor_set == false && !var.backup_crn ? [1] : []

@jor2
Copy link
Member Author

jor2 commented Nov 25, 2024

/run pipeline

@jor2 jor2 requested a review from shemau November 27, 2024 13:36
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

@shemau
Copy link
Contributor

shemau commented Nov 29, 2024

/run pipeline

@ocofaigh ocofaigh merged commit f37f63f into main Nov 29, 2024
2 checks passed
@ocofaigh ocofaigh deleted the group-fix branch November 29, 2024 12:50
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.13.1 🎉

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.

4 participants