From fb0b57ee4797fd26a17bbb676e8ba9d3c7f2c4c5 Mon Sep 17 00:00:00 2001 From: wlan0 Date: Mon, 21 Aug 2017 10:51:47 -0700 Subject: [PATCH] fix conditional for warning while starting KCM without secret file --- cmd/kube-controller-manager/app/controllermanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kube-controller-manager/app/controllermanager.go b/cmd/kube-controller-manager/app/controllermanager.go index 2c5e2518fc0..e443817ef04 100644 --- a/cmd/kube-controller-manager/app/controllermanager.go +++ b/cmd/kube-controller-manager/app/controllermanager.go @@ -164,7 +164,7 @@ func Run(s *options.CMServer) error { } var clientBuilder controller.ControllerClientBuilder if s.UseServiceAccountCredentials { - if len(s.ServiceAccountKeyFile) > 0 { + if len(s.ServiceAccountKeyFile) == 0 { // It's possible another controller process is creating the tokens for us. // If one isn't, we'll timeout and exit when our client builder is unable to create the tokens. glog.Warningf("--use-service-account-credentials was specified without providing a --service-account-private-key-file")