CNTRLPLANE-3236: kms: fix args passed to the vault mock plugin#2223
Conversation
Previously, -vault-namespace and -transit-mount reflected whatever values their counterparts api fields had. However, those fields are optional in the api, but since they are not pointers, their values could be be empty strings. As a result, this patch checks if those fields contain empty strings and optionally pass them through to the KMS plugin via CLI args. In addition, this patch also plumbs through the role-id param, which is a required api field.
|
@bertinatto: This pull request references CNTRLPLANE-3236 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
WalkthroughThe ChangesVault Sidecar Argument Construction
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Changes look good to me |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, bertinatto The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/hold cancel |
|
@bertinatto: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Previously,
-vault-namespaceand-transit-mountreflected whatever values their counterparts api fields had. However, those fields are optional in the api, but since they are not pointers, their values could be be empty strings. As a result, this patch checks if those fields contain empty strings and optionally pass them through to the KMS plugin via CLI args.In addition, this patch also plumbs through the role-id param, which is a required api field.
Summary by CodeRabbit
Improvements