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

set default for kpk in storage delegation #223

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Aayush-Abhyarthi
Copy link
Contributor

Description

Issue: #153

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.

@ocofaigh
Copy link
Member

ocofaigh commented Dec 4, 2024

@Aayush-Abhyarthi The upgrade test does not have KMS encryption enabled, so we won't be able to test this change in the upgrade test. This is a gap we probably wan't to plug before proceeding with this PR

@Aayush-Abhyarthi
Copy link
Contributor Author

/run pipeline

@Aayush-Abhyarthi
Copy link
Contributor Author

/run pipeline

tests/pr_test.go Outdated
"resource_group_name": prefix,
"provider_visibility": "public",
"cos_kms_crn": terraform.Output(t, existingTerraformOptions, "key_protect_crn"),
"cos_kms_key_crn": terraform.Output(t, existingTerraformOptions, "kms_key_crn"),
Copy link
Member

Choose a reason for hiding this comment

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

To enable encryption, you need to set enable_cos_kms_encryption = true. The fact that the test passed even when passing values for cos_kms_crn and cos_kms_key_crn makes me think we should add variable validation to the DA code to ensure that if user does pass values for these, that enable_cos_kms_encryption has to be set to true

Copy link
Member

Choose a reason for hiding this comment

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

It also looks like TestWithExistingKP also needs this update

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.

see comments

@Aayush-Abhyarthi
Copy link
Contributor Author

/run pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants