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:exposed visibility value for the provider in the DA #245

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

Aditya-ranjan-16
Copy link
Contributor

Description

exposed visibility value for the provider in the DA , with default value set to "private"

Git issue

Release required?

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

exposes visibility value for the provider in the DA

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.

@Aditya-ranjan-16
Copy link
Contributor Author

/run pipeline

@Aditya-ranjan-16
Copy link
Contributor Author

/run pipeline

Copy link
Member

@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.

One more change required. Can you update the cra-config.yaml file and add the following TF_VAR:

TF_VAR_provider_visibility: "public"
(I'm surprised the pipeline passed without this change to be honest)

@Aditya-ranjan-16
Copy link
Contributor Author

/run pipeline

Copy link
Member

@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.

@Aditya-ranjan-16 The test failed with this error:

Error: [ERROR] Error when creating resource instance: Please contact the Service Provider for this error. [422, Unprocessable Entity] This account reached the number of Trial plan instances that are allowed. To proceed, you must select the Standard plan or delete an existing Trial instance. If you delete the Trial plan instance, you must also delete its reclamation by using the IBM Cloud CLI.

However our test should not be creating a new secrets manager instance. I took a look, and it seems there is a bug in the complete example. To address, can you add a count around the secrets manager module call here like so:
count = var.existing_sm_instance_guid == null ? 1 : 0

@Aditya-ranjan-16
Copy link
Contributor Author

/run pipeline

@Aditya-ranjan-16
Copy link
Contributor Author

/run pipeline

iamar7
iamar7 previously requested changes Nov 19, 2024
Copy link
Member

@iamar7 iamar7 left a comment

Choose a reason for hiding this comment

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

@Aditya-ranjan-16 Can you please update

module.secrets_manager.secrets_manager_guid -> module.secrets_manager[0].secrets_manager_guid

The complete example will fail if consumer wants to create a new sm_instance.

@Aditya-ranjan-16
Copy link
Contributor Author

/run pipeline

@ocofaigh ocofaigh dismissed iamar7’s stale review November 19, 2024 16:56

feedback addressed

@ocofaigh ocofaigh merged commit a105268 into main Nov 19, 2024
2 checks passed
@ocofaigh ocofaigh deleted the provider_visibility branch November 19, 2024 16:57
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.3.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.

[terraform-ibm-cloudant] Expose provider visibility in the DA
4 participants