mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-09 09:17:27 +00:00
Merge pull request #682 from SomtochiAma/multiple-config-files
Check for multiple files in KUBECONFIG variable
This commit is contained in:
commit
9da427a515
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue