-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AzureCLICredential Error on kubelogin v0.0.19 #123
Comments
Since kubelogin has no knowledge how azure cli is logged in with, i think the solution is simply disregard the tenant ID from input kubeconfig during the conversion. If overriding the tenant ID for different tenant is desired, add az aks get-credentials -g ${RG} -n ${AKS} && kubelogin convert-kubeconfig -l azurecli --tenant-id ${TENANT_ID} cc: @pearj about this change |
@weinong thanks for the heads up. |
fixed in v0.0.20 |
…ure#124) The change in v0.0.19 introduced passing the tenantID from input kubeconfig to azurecli. This resulted in error in azurecli when it's logged in using MSI as MSI login does not support tenant ID. (Azure#123) The change in this PR will disregard the tenant ID from input kubeconfig when convert to azurecli. If overriding tenant ID in azurecli mode is desired, add `--tenant-id` explicitly during conversion. For instance, ```sh az aks get-credentials -g ${RG} -n ${AKS} && kubelogin convert-kubeconfig -l azurecli --tenant-id ${TENANT_ID} ```
I have an Azaure Devops pipeline that uses an AAD managed identity to work alongside kubelogin's AzureCLI non interactive token login option.
An excerpt of how it is configured is:
Since version 0.0.19 came out, we have been getting an error: AzureCLICredential: ERROR: Tenant shouldn't be specified for managed identity account
Because of the timing and the nature of the change, I suspect that this changed based on this PR: #122
To temporarily fix this, I have mended the az aks install-cli command, and I am fixing the version to the last working one for us:
--kubelogin-version v0.0.18
.I would like to ask for help, a sample that could help me figure out how to get the login mechanism to work on latest. Thank you so much for your help!
The text was updated successfully, but these errors were encountered: