Open sleterrier opened 1 year ago
Can this problem be worked around?
We have teams using both the Azure one and this, which forces them to uninstall/reinstall to switch between the two. Can we safely change the binary name here in a new release? Does brew offer any options for this?
I didn't see it mentioned in either the int128 or Azure kubelogin docs, but there is a version of the Azure kubelogin formula that uses the name az-kubelogin
and it can be installed and used alongside int128/kubelogin
. You can install it with brew install azure/kubelogin/az-kubelogin
.
You'll need to update any AKS users clusters in your kubeconfig to the use the command az-kubelogin
.
EX:
AKS cluster using Azure's az-kubelogin
:
users:
- name: clusterUser_<your-aks-user>
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- get-token
- --environment
- AzurePublicCloud
- --server-id
- <syour-server-id>
- --client-id
- <syour-client-id>
- --tenant-id
- <syour-tenant-id>
- --login
- devicecode
command: az-kubelogin
env: null
interactiveMode: IfAvailable
provideClusterInfo: false
Some other cluster using int128's kubelogin
:
- name: clusterUser_<your-other-user>
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- oidc-login
- get-token
- --oidc-issuer-url=<your-issuer-url>
- --oidc-client-id=<your-client-id>
- --oidc-extra-scope=email offline_access profile openid
- --listen-address=0.0.0.0:8000
- --listen-address=0.0.0.0:18000
command: kubectl
env: null
interactiveMode: IfAvailable
provideClusterInfo: false
painful experience, is there a solution here? I'm also using Azure/kubelogin and int128/kubelogin/kubelogin
Describe the issue
int128/kubelogin/kubelogin
andazure/kubelogin/kubelogin
brew formulas both create akubelogin
binary:The setup guide only mentions
kubectl oidc-login
; is there a reason whyint128/kubelogin/kubelogin
is not directly installed asbin/kubectl-oidc_login
, instead of as abin/kubelogin
symlink?To reproduce
brew install azure/kubelogin/kubelogin
brew install int128/kubelogin/kubelogin
Your environment