maybe this will work

pull/9559/head
Sharif Elgamal 2020-10-27 11:56:22 -07:00
parent 4fc095df77
commit f7baa9c1e9
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ func validateMinikubeKubectlDirectCall(ctx context.Context, t *testing.T, profil
}
defer os.Remove(dstfn) // clean up
kubectlArgs := []string{"--context", profile, "get", "pods"}
kubectlArgs := []string{"--", "--context", profile, "get", "pods"}
rr, err := Run(t, exec.CommandContext(ctx, dstfn, kubectlArgs...))
if err != nil {
t.Fatalf("failed to run kubectl directly. args %q: %v", rr.Command(), err)