Coder Social home page Coder Social logo

Comments (7)

JohnGalt1717 avatar JohnGalt1717 commented on July 24, 2024 2

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.

JohnGalt1717 avatar JohnGalt1717 commented on July 24, 2024 1

That's what installers are for that would also update the path automatically.

from kubelogin.

mpowrie avatar mpowrie commented on July 24, 2024 1

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.

darthmolen avatar darthmolen commented on July 24, 2024 1

Instructions for WSL with ubuntu would be nice, with docker-desktop installed.

from kubelogin.

anumsft avatar anumsft commented on July 24, 2024

For Windows, the easiest way probably is to az aks install-cli
cli_kubelogin_windows

Will add this to the readme.

from kubelogin.

anmathew avatar anmathew commented on July 24, 2024

WinGet doesn't yet support standalone executables: microsoft/winget-cli#182

from kubelogin.

weinong avatar weinong commented on July 24, 2024

fixed in #194

from kubelogin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.