diff --git a/cmd/kube-controller-manager/app/controllermanager.go b/cmd/kube-controller-manager/app/controllermanager.go index 0733ca1449..933c939604 100644 --- a/cmd/kube-controller-manager/app/controllermanager.go +++ b/cmd/kube-controller-manager/app/controllermanager.go @@ -250,7 +250,7 @@ func (s *CMServer) Run(_ []string) error { var rootCA []byte if s.RootCAFile != "" { - rootCA, err := ioutil.ReadFile(s.RootCAFile) + rootCA, err = ioutil.ReadFile(s.RootCAFile) if err != nil { return fmt.Errorf("error reading root-ca-file at %s: %v", s.RootCAFile, err) }