CNTRLPLANE-3236: support deploying Vault mock KMS plugin#899
CNTRLPLANE-3236: support deploying Vault mock KMS plugin#899bertinatto wants to merge 3 commits into
Conversation
|
@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. |
|
Skipping CI for Draft Pull Request. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThis change migrates KMS integration in the OpenShift OAuth API server deployment from volume/mount injection to sidecar-based injection via the ChangesKMS Plugin Lifecycle Integration
🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 8 | ❌ 4❌ Failed checks (3 warnings, 1 inconclusive)
✅ Passed checks (8 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
85702d8 to
d42bb8c
Compare
d42bb8c to
1667e9c
Compare
1667e9c to
e3bc61e
Compare
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 `@pkg/operator/workload/sync_openshift_oauth_apiserver.go`:
- Around line 318-324: The call to
kmspluginlifecycle.AddKMSPluginSidecarToPodSpec is passing
required.Spec.Template.Name (the pod template metadata name) but the function
expects the actual container name; update the call site to pass the real
container name "oauth-apiserver" (instead of required.Spec.Template.Name) so
AddKMSPluginSidecarToPodSpec can locate the container (keep the other args: ctx,
&required.Spec.Template.Spec, c.targetNamespace,
fmt.Sprintf("encryption-config-%d", operatorStatus.LatestAvailableRevision),
c.kubeClient.CoreV1(), c.featureGateAccessor).
🪄 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: 33936668-890b-4a82-a036-75d2d8eed111
⛔ Files ignored due to path filters (3)
vendor/github.com/openshift/library-go/pkg/operator/encryption/kms/pluginlifecycle/sidecar.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/library-go/pkg/operator/encryption/kms/pluginlifecycle/vault.gois excluded by!**/vendor/**,!vendor/**vendor/modules.txtis excluded by!**/vendor/**,!vendor/**
📒 Files selected for processing (1)
pkg/operator/workload/sync_openshift_oauth_apiserver.go
|
/retest |
|
/test e2e-agnostic-upgrade |
ardaguclu
left a comment
There was a problem hiding this comment.
/lgtm
/approve
/hold
for the confirmation
| ctx, &required.Spec.Template.Spec, | ||
| "oauth-apiserver", | ||
| c.targetNamespace, | ||
| fmt.Sprintf("encryption-config-%d", operatorStatus.LatestAvailableRevision), |
There was a problem hiding this comment.
I think it is better to get confirmation from @p0lyn0mial with this line.
There was a problem hiding this comment.
I think this is how we are currently setting the revision in the deployment manifest: https://github.com/openshift/cluster-authentication-operator/blob/44a8076/pkg/operator/workload/sync_openshift_oauth_apiserver.go#L246-L246
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu 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 |
|
/verified by ci runs |
|
@gangwgr: This PR has been marked as verified by 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. |
da32fb3 to
362db9b
Compare
|
New changes are detected. LGTM label has been removed. |
|
/retest |
1 similar comment
|
/retest |
|
@bertinatto: The following tests failed, say
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. |
Summary by CodeRabbit