CNTRLPLANE-3361: pluginlifecycle: treat transit-mount as required#2232
CNTRLPLANE-3361: pluginlifecycle: treat transit-mount as required#2232flavianmissi wants to merge 1 commit into
Conversation
|
@flavianmissi: This pull request references CNTRLPLANE-3361 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 (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughVault sidecar arg lists now always include -transit-mount; the mock plugin wrapper requires --transit-mount; unit and integration tests updated to match the new arg ordering and presence. ChangesTransit Mount as Required Argument
🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 10 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/library/encryption/kms/k8s-mock-plugin/wrapper/main.go`:
- Line 40: The help text for the --transit-mount flag is out of date: update the
flag.StringVar call that registers o.transitMount (flag name "transit-mount") to
remove the "(optional)" suffix and reflect that the transit mount is required so
the usage matches the validation logic (i.e., change the third argument string
to not include "(optional)").
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 52c3bf5f-2cb3-4a67-bd65-23660128a090
📒 Files selected for processing (4)
pkg/operator/encryption/kms/pluginlifecycle/sidecar_test.gopkg/operator/encryption/kms/pluginlifecycle/vault.gopkg/operator/encryption/kms/pluginlifecycle/vault_test.gotest/library/encryption/kms/k8s-mock-plugin/wrapper/main.go
|
/assign @bertinatto |
the api has changed to make this field required, so we change to reflect it.
d53d047 to
bbbdd50
Compare
|
@flavianmissi: 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. |
bertinatto
left a comment
There was a problem hiding this comment.
/lgtm
and
/hold
for openshift/api#2847. We need that first because otherwise we could pass -transit-mount="" to the plugin, which would then fail to start. Not a big deal, but it'd break KMS tests in other PRs.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bertinatto, flavianmissi 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 |
|
PR needs rebase. 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. |
the api has changed to make this field required, so we change to reflect it.
Summary by CodeRabbit