Skip to content

Conversation

@daniel-butler-irl
Copy link
Contributor

@daniel-butler-irl daniel-butler-irl commented Oct 14, 2025

Description

mapping resource group down to dependencies

Release required?

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

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.

@daniel-butler-irl
Copy link
Contributor 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.

see comments

tests/pr_test.go Outdated
"prefix": options.Prefix,
"bucket_name": "test",
"bucket_name": "test",
"resource_group": resourceGroup,
Copy link
Contributor

Choose a reason for hiding this comment

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

resource_group is not the name of the input, thats just the display name in ibm_catalog.json. The input is called existing_resource_group_name

tests/pr_test.go Outdated
"prefix": options.Prefix,
"bucket_name": "test",
"bucket_name": "test",
"resource_group": resourceGroup,
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

ibm_catalog.json Outdated
]
},
{
"key": "resource_group",
Copy link
Contributor

Choose a reason for hiding this comment

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

Not following why you are adding this virtual input? You should be mapping the existing_resource_group_name input down

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if your starting point is buckets there is no RG, so we need a virtual for it. For consistency I will update it to existing_resource_group_name with displayname

Copy link
Contributor

Choose a reason for hiding this comment

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

ahh got it - just for buckets yes

ibm_catalog.json Outdated
]
},
{
"key": "resource_group",
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

ibm_catalog.json Outdated
]
},
{
"key": "resource_group",
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

ibm_catalog.json Outdated
]
},
{
"key": "resource_group",
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can update these but they are virtual inputs that would get a display name of resource_group so I skipped calling them existing

Copy link
Contributor

Choose a reason for hiding this comment

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

why do we have a virtual input at all? #978 (comment)

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.

Oh and also you need to change the default value of existing_resource_group_name in the terraform code. It should now default to "Default" and I think remove the sentence "If not provided the default resource group will be used." from the description like I did in PR109

@ocofaigh
Copy link
Contributor

/run pipeline

@daniel-butler-irl daniel-butler-irl merged commit b405438 into main Oct 16, 2025
2 checks passed
@daniel-butler-irl daniel-butler-irl deleted the add_rg_mappings branch October 16, 2025 12:09
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 10.5.0 🎉

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