Skip to content

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

Closed
Ben Vesel (bennerv) wants to merge 1 commit into
Azure:mainfrom
bennerv:e2e-oidc-use-webhook-label
Closed

test(e2e): use workload identity webhook label instead of manual injection#4515
Ben Vesel (bennerv) wants to merge 1 commit into
Azure:mainfrom
bennerv:e2e-oidc-use-webhook-label

Conversation

@bennerv

@bennerv Ben Vesel (bennerv) commented Mar 18, 2026

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.

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.

…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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the OIDC workload identity E2E test to rely on the Azure workload identity webhook (now available as a KAS sidecar) instead of manually injecting federated token env/volume configuration.

Changes:

  • Add the azure.workload.identity/use: "true" label to the test pod to trigger webhook injection.
  • Remove the manually configured projected token volume, volume mount, and explicit AZURE_* env vars from the test pod spec.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/e2e/oidc_issuer_workload_identity.go
@bennerv

Copy link
Copy Markdown
Collaborator Author

@bennerv

Copy link
Copy Markdown
Collaborator Author

/test e2e-parallel

@bennerv

Copy link
Copy Markdown
Collaborator Author

I've been told that #4592 has the changes to make this PR work. Kicked off an e2e.

@geoberle

Copy link
Copy Markdown
Collaborator

/lgtm

@geoberle

Copy link
Copy Markdown
Collaborator

/test e2e-parallel

@geoberle

Copy link
Copy Markdown
Collaborator

/lgtm cancel

@openshift-ci openshift-ci Bot removed the lgtm label Mar 25, 2026
@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

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

@geoberle

Copy link
Copy Markdown
Collaborator

this will be the one with the hypershift webhook changes
#4624

@raelga

Copy link
Copy Markdown
Collaborator

/retest

@bennerv

Ben Vesel (bennerv) commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator Author

replaced by #4627

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.

4 participants