remove auth-path from kubeconfig

This commit is contained in:
deads2k
2015-05-11 09:42:07 -04:00
parent 6498fc1fda
commit 19784dbc4f
43 changed files with 8 additions and 335 deletions

View File

@@ -306,7 +306,6 @@ func validateController(c *client.Client, containerImage string, replicas int, c
Failf("Timed out after %v seconds waiting for %s pods to reach valid state", podStartTimeout.Seconds(), testname)
}
// kubectlCmd runs the kubectl executable.
// kubectlCmd runs the kubectl executable.
func kubectlCmd(args ...string) *exec.Cmd {
defaultArgs := []string{}
@@ -324,7 +323,6 @@ func kubectlCmd(args ...string) *exec.Cmd {
}
} else {
defaultArgs = append(defaultArgs, "--"+clientcmd.FlagAuthPath+"="+testContext.AuthConfig)
if testContext.CertDir != "" {
defaultArgs = append(defaultArgs,
fmt.Sprintf("--certificate-authority=%s", filepath.Join(testContext.CertDir, "ca.crt")),