Skip to content

Commit 6a362e1

Browse files
committed
Support gk8s :local, that is when KUBECONFIG is empty
1 parent 61ad471 commit 6a362e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ func main() {
110110
}
111111

112112
if cluster_name == "local" {
113-
os.Setenv("KUBECONFIG", "")
114-
} else {
115-
os.Setenv("KUBECONFIG", kubecfg)
113+
kubecfg = ""
116114
}
115+
os.Setenv("KUBECONFIG", kubecfg)
117116
log2(fmt.Sprintf(":: Executing '%s', args: %v, KUBECONFIG: %s\n", binary, args, kubecfg))
118117
err := syscall.Exec(binary, args, syscall.Environ())
119118
if err != nil {

0 commit comments

Comments
 (0)