From fbd03e5b90aad0cfdf9870e3bd84140626c8f237 Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Thu, 25 Jun 2015 11:40:48 -0700 Subject: [PATCH] fix variable shadowing bug where provided RootCA would always be a nil byte slice --- 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 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) }