Skip to content

test(e2e): use workload identity webhook label instead of manual injection - #4627

Merged
openshift-merge-bot[bot] merged 2 commits into
mainfrom
e2e-oidc-use-webhook-label
Mar 25, 2026
Merged

test(e2e): use workload identity webhook label instead of manual injection#4627
openshift-merge-bot[bot] merged 2 commits into
mainfrom
e2e-oidc-use-webhook-label

Conversation

@geoberle

Copy link
Copy Markdown
Collaborator

What

Use the azure.workload.identity/use pod label in the OIDC workload identity e2e test so the webhook automatically injects the required env vars, volume, and volume mount. Remove the manual configuration that was serving as a workaround.

Until Apr 1st (or sooner if we want to remove it before that), keep the manual injection in stage and prod.

Why

The Azure workload identity webhook is now available as a KAS sidecar (CNTRLPLANE-2910), so the manual env var, volume, and volume mount injection is no longer needed. This resolves the TODOs left in the test.

Special notes for your reviewer

The az login command in the pod still references $AZURE_CLIENT_ID, $AZURE_TENANT_ID, and $AZURE_FEDERATED_TOKEN_FILE — these are now expected to be injected by the webhook rather than set manually.

Ben Vesel (bennerv) and others added 2 commits March 25, 2026 12:42
…ction

Now that the Azure workload identity webhook is available as a KAS
sidecar (CNTRLPLANE-2910), use the `azure.workload.identity/use` pod
label so the webhook automatically injects the required env vars,
volume, and volume mount. Remove the manual configuration that was
serving as a workaround.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ailability

Dev and INT environments have the webhook deployed, so they use the
label-based injection. Higher environments (stg, prod) fall back to
manual injection of env vars and volumes until April 1st 2026, after
which all environments are expected to have the webhook.
@bennerv

Copy link
Copy Markdown
Collaborator

/lgtm

replaces 4515

@openshift-ci

openshift-ci Bot commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bennerv, geoberle

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-merge-bot
openshift-merge-bot Bot merged commit 83f5198 into main Mar 25, 2026
17 checks passed
@openshift-merge-bot
openshift-merge-bot Bot deleted the e2e-oidc-use-webhook-label branch March 25, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants