Comments (7)
Not sure why it can't update the path automatically or if not at least prompt to do it for you? All these apps that endlessly require path updates by hand is super anoying.
from kubelogin.
That's what installers are for that would also update the path automatically.
from kubelogin.
My $0.02 to install kubelogin and add it to the Windows path in one scriptlet.
(Run from Powershell)
az aks install-cli
$targetDir="$env:USERPROFILE\.azure-kubelogin"
$oldPath = [System.Environment]::GetEnvironmentVariable("Path","User")
$oldPathArray=($oldPath) -split ";"
if(-Not($oldPathArray -Contains "$targetDir")) {
write-host "Permanently adding $targetDir to User Path"
$newPath = "$oldPath;$targetDir" -replace ";+", ";"
[System.Environment]::SetEnvironmentVariable("Path",$newPath,"User")
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","User"),[System.Environment]::GetEnvironmentVariable("Path","Machine") -join ";"
}
write-host "Windows paths:"
($env:Path).Replace(';',"`n")
write-host "Converting existing kubeconfig with existing azure auth provider to use kubelogin"
kubelogin convert-kubeconfig -l azurecli
from kubelogin.
Instructions for WSL with ubuntu would be nice, with docker-desktop installed.
from kubelogin.
For Windows, the easiest way probably is to az aks install-cli
Will add this to the readme.
from kubelogin.
WinGet doesn't yet support standalone executables: microsoft/winget-cli#182
from kubelogin.
fixed in #194
from kubelogin.
Related Issues (20)
- BUG: unknown command "convert-kubeconfig" for "kubelogin" HOT 4
- kubelogin not found after installing with winget HOT 2
- Error converting kubernetes config file for Service Principle login. HOT 2
- Private App Registration HOT 4
- Twist CLI flagged critical vulnerability(CVE-2023-24540) with go 1.19.8 HOT 1
- kubelogin convert-kubeconfig -l spn returns non zero exit code without any error message HOT 1
- Bicep experimental kubernetes with azure auth/k8s admin disabled HOT 2
- `interactive` mode results in an empty `refresh_token` HOT 1
- Accessing AKS kubeconfig file from Azure DevOps artifact HOT 2
- kubectl not finding kubelogin from Path VAR HOT 2
- Support for alternative AzureAD authentication endpoints HOT 1
- Get JWT token from AzureAD v2.0 endpoint HOT 7
- Why kubectl in conjunction with kubelogin sends complete string instead of only user (upn) HOT 4
- Variable overrides parameter value inside kubeconfig HOT 1
- legacy flag does not work from version v0.0.30 when the login method is spn HOT 7
- Add linux-arm build
- Subject Name Issuer based Auth for SPN Login Mode for Kubelogin HOT 2
- Support OIDC request url & token HOT 2
- `get-token --login azurecli` should be fast when a local token exists HOT 2
- kubelogin is vulnerable to CVE-2023-39323 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubelogin.