Open mjnovice opened 8 months ago
The azure-identity-token
volume shouldn't be part of the Pod spec.
Only specify the azure.workload.identity/use: "true"
label should be specified and let the Workload Identity do its work.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
/kind bug
[Before submitting an issue, have you checked the Troubleshooting Guide?]
What steps did you take and what happened: [A clear and concise description of what the bug is.] Installed
capz
ontovcluster
we see a clash in the volumes sectionthe pod section for pod created on host cluster, what vcluster will create it the following
Pod creation on the host cluster fails because of
If we use
--sync-label
for vcluster to sync the labelazure.workload.identity/use
the workload identity webhook will try to add it, as the volumes section https://github.com/Azure/azure-workload-identity/blame/main/pkg/webhook/webhook.go#L401 are not the same, and the webhook tries to create it again.What did you expect to happen: CAPZ pod doesn't come up
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
): 1.28/etc/os-release
):