mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-24 06:54:57 -04:00
Add Windows instructions for adding KUBECONFIG
This commit is contained in:
parent
b35b74b772
commit
c6161aacc7
1 changed files with 7 additions and 1 deletions
|
@ -12,6 +12,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
|
@ -221,7 +222,12 @@ func writeOutput(idFile clusterid.File, resp *initproto.InitResponse, wr io.Writ
|
|||
}
|
||||
|
||||
fmt.Fprintln(wr, "You can now connect to your cluster by executing:")
|
||||
fmt.Fprintf(wr, "\texport KUBECONFIG=\"$PWD/%s\"\n", constants.AdminConfFilename)
|
||||
if runtime.GOOS == "windows" {
|
||||
fmt.Fprintf(wr, "\tset KUBECONFIG=%%CD%%\\%s (cmd.exe)\n", constants.AdminConfFilename)
|
||||
fmt.Fprintf(wr, "\t$env:KUBECONFIG=\"$PWD\\%s\" (PowerShell)\n", constants.AdminConfFilename)
|
||||
} else {
|
||||
fmt.Fprintf(wr, "\texport KUBECONFIG=\"$PWD/%s\"\n", constants.AdminConfFilename)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue