|
|
|
@ -204,7 +204,7 @@ func getConfigurator() *configurator.Configurator {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if *kubeInsecure {
|
|
|
|
|
args = append(args, "--insecure-skip-tls-verify")
|
|
|
|
|
args = append(args, fmt.Sprintf("--insecure-skip-tls-verify=%s", *kubeInsecure))
|
|
|
|
|
} else {
|
|
|
|
|
if *kubeCertAuth != "" {
|
|
|
|
|
args = append(args, fmt.Sprintf("--certificate-authority=%s", *kubeCertAuth))
|
|
|
|
@ -216,7 +216,7 @@ func getConfigurator() *configurator.Configurator {
|
|
|
|
|
args = append(args, fmt.Sprintf("--client-key=%s", *kubeClientKey))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if *kubeToken != "" {
|
|
|
|
|
args = append(args, fmt.Sprintf("--token=%s", *kubeToken))
|
|
|
|
|
} else {
|
|
|
|
@ -229,7 +229,6 @@ func getConfigurator() *configurator.Configurator {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return configurator.NewConfigurator(*kubePath, args)
|
|
|
|
|
}
|
|
|
|
|