Commit 18e1122a authored by runseb's avatar runseb

Treat token based auth properly in resourcifier

Wrong operator for token based auth.
If a token was specified this was asking for username and password.
parent 4ea5526e
...@@ -217,7 +217,7 @@ func getConfigurator() *configurator.Configurator { ...@@ -217,7 +217,7 @@ func getConfigurator() *configurator.Configurator {
} }
} }
if *kubeToken == "" { if *kubeToken != "" {
args = append(args, fmt.Sprintf("--token=%s", *kubeToken)) args = append(args, fmt.Sprintf("--token=%s", *kubeToken))
} else { } else {
if *kubeUsername != "" { if *kubeUsername != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment