Open NaridaL opened 2 years ago
thanks for the hint - rename kubelogin.exe
to kubectl-oidc_login.exe
and kubelogin is working
Renaming the file worked for me, but this took way to long to figure out. Please fix the Choco installer so kubectl-oidc_login.exe exists from the start.
Just ran into this issue. Looks like Chocolately considers it to be an upstream problem (with this repo), since they receive kubelogin.exe in the zip they are disinclined to rename it or create a symlink. Why is it distributed in the releases as kubelogin.exe anyway, or kubelogin for that matter for Linux... since even the install instructions say to rename it after unzipping?
As a workaround, execute this after installation:
&"$env:ChocolateyInstall\tools\shimgen.exe" --output="$env:ChocolateyInstall\bin\kubectl-oidc_login.exe" --path="..\lib\kubelogin\tools\kubelogin.exe"
As a workaround, execute this after installation:
&"$env:ChocolateyInstall\tools\shimgen.exe" --output="$env:ChocolateyInstall\bin\kubectl-oidc_login.exe" --path="..\lib\kubelogin\tools\kubelogin.exe"
This worked for me, but we definitly shouldn't have to do that...
Describe the issue
I am trying to get kubectl oidc-login to work. According to the docs,
choco install kubelogin
should be enough. However, it also says thatkubectl-oidc_login
needs to be available on the path, but as far as I can see,choco install
doesn't do that.Compare
choco install krew
, which also creates%HOMEPATH%\.krew\bin\kubectl-krew.exe
which links to the installed krew.exe.I'm not sure if this an issue with the docs (i.e. the manual step of copying it to
kubectl-oidc_login
needs to be done not only for github releases installation, but also for choco), or if the choco package needs to be adjusted to take care of this automatically too.To reproduce
Your environment