Skip to content

CNTRLPLANE-3008: Azure web identity webhook 4.20 - #7998

Merged
enxebre merged 3 commits into
openshift:release-4.20from
enxebre:azure-web-identity-webhook-4.20
Mar 20, 2026
Merged

CNTRLPLANE-3008: Azure web identity webhook 4.20#7998
enxebre merged 3 commits into
openshift:release-4.20from
enxebre:azure-web-identity-webhook-4.20

Conversation

@enxebre

@enxebre enxebre commented Mar 18, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes

Special notes for your reviewer:

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

csrwng and others added 2 commits March 18, 2026 13:30
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>
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 18, 2026
@openshift-ci-robot

openshift-ci-robot commented Mar 18, 2026

Copy link
Copy Markdown

@enxebre: This pull request references CNTRLPLANE-3005 which is a valid jira issue.

Details

In response to this:

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes

Special notes for your reviewer:

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@coderabbitai

coderabbitai Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7a3726f5-4d9b-4b77-9f92-4a7aac4ae159

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci

openshift-ci Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release area/testing Indicates the PR includes changes for e2e testing approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed do-not-merge/needs-area labels Mar 18, 2026
@celebdor celebdor changed the title CNTRLPLANE-3005: Azure web identity webhook 4.20 CNTRLPLANE-3008: Azure web identity webhook 4.20 Mar 18, 2026
@openshift-ci-robot

openshift-ci-robot commented Mar 18, 2026

Copy link
Copy Markdown

@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.

Details

In response to this:

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes

Special notes for your reviewer:

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@xiuwang

xiuwang commented Mar 19, 2026

Copy link
Copy Markdown

/verified by @xiuwang

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Mar 19, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@xiuwang: This PR has been marked as verified by @xiuwang.

Details

In response to this:

/verified by @xiuwang

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.

Comment thread test/e2e/util/azure.go Outdated

func EnsureAzureWorkloadIdentityWebhookMutation(t *testing.T, ctx context.Context, guestClient crclient.Client) {
t.Run("EnsureAzureWorkloadIdentityWebhookMutation", func(t *testing.T) {
AtLeast(t, Version422)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Need remove this line

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>
@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Mar 20, 2026
@celebdor celebdor added verified Signifies that the PR passed pre-merge verification criteria jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Mar 20, 2026
@jparrill

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Mar 20, 2026
@enxebre enxebre added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Mar 20, 2026
@celebdor

Copy link
Copy Markdown
Collaborator

/retest-required

@celebdor

Copy link
Copy Markdown
Collaborator

/retest

@openshift-ci

openshift-ci Bot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

@enxebre: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws 7f108d2 link true /test e2e-aws

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@enxebre
enxebre merged commit 53f45be into openshift:release-4.20 Mar 20, 2026
16 of 18 checks passed
celebdor added a commit to celebdor/hypershift that referenced this pull request Jun 15, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release area/testing Indicates the PR includes changes for e2e testing backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants