-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Describe the bug
cmd/cluster_use.gois trying to set env var, usingos.Setenv()which is only accessible inside program, i.e. child process.
Possible Explanation: A process has a copy of its parent's environment and can't write to the parent environment.
Process Tree:
`--- shell
`--- go program
|
`--- other program
Expected behavior
It is suppose the set the env variable KUBECONFIG in terminal.
os/exec can be used in this scenario, but the major drawback can be export is not a binary.