CNTRLPLANE-3008: Azure web identity webhook 4.20 - #7998
Conversation
Deploy the Azure workload identity webhook as a sidecar container in the KAS deployment for Azure platform clusters, mirroring the existing AWS pod identity webhook pattern. This enables customer workloads to authenticate to Azure services via annotated ServiceAccounts. Changes: - Add serving certificate PKI reconciliation for the webhook - Add webhook sidecar container to KAS deployment (port 9443, health 9440) - Add kubeconfig generation for the webhook service account - Register webhook kubeconfig manifest adapter in KAS component - Create guest cluster RBAC (ClusterRole/ClusterRoleBinding) and MutatingWebhookConfiguration via HCCO - Add unit tests for all new functions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Wrap EnsureAzureWorkloadIdentityWebhookMutation in a t.Run subtest with AtLeast(Version422) so the test is skipped on older versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@enxebre: This pull request references CNTRLPLANE-3005 which is a valid jira issue. 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. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enxebre 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 |
|
@enxebre: This pull request references CNTRLPLANE-3008 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 "4.20.z" 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. |
|
/verified by @xiuwang |
|
@xiuwang: 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. |
|
|
||
| func EnsureAzureWorkloadIdentityWebhookMutation(t *testing.T, ctx context.Context, guestClient crclient.Client) { | ||
| t.Run("EnsureAzureWorkloadIdentityWebhookMutation", func(t *testing.T) { | ||
| AtLeast(t, Version422) |
The e2e test added in this PR runs against main, where the azure workload identity webhook feature is not yet available. Remove the test call and its implementation file until the feature is present in the version used for e2e. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/lgtm |
|
/retest-required |
|
/retest |
|
@enxebre: The following test 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. |
…4.20 The Azure workload identity webhook was originally implemented for 4.22 (PR openshift#7867) but was subsequently backported to 4.20 (PR openshift#7998) and 4.21 (PR openshift#7997). Update the e2e test version gate from Version422 to Version420 so the test runs against all supported versions. Refs: CNTRLPLANE-3093, CNTRLPLANE-3096 Signed-off-by: Antoni Segura Puimedon <antoni@redhat.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes
Special notes for your reviewer:
Checklist: