Merge pull request #682 from SomtochiAma/multiple-config-files

Check for multiple files in KUBECONFIG variable
pull/687/head
Stefan Prodan 4 years ago committed by GitHub
commit 9da427a515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,7 +67,7 @@ const (
func ExecKubectlCommand(ctx context.Context, mode ExecMode, kubeConfigPath string, kubeContext string, args ...string) (string, error) {
var stdoutBuf, stderrBuf bytes.Buffer
if kubeConfigPath != "" {
if kubeConfigPath != "" && len(filepath.SplitList(kubeConfigPath)) == 1 {
args = append(args, "--kubeconfig="+kubeConfigPath)
}

Loading…
Cancel
Save