should check return err

This commit is contained in:
stewart-yu 2017-11-26 11:03:14 +08:00
parent 0a3cf59396
commit 26626529a7

View File

@ -143,9 +143,9 @@ func Run(s *options.CloudControllerManagerServer) error {
clientBuilder = rootClientBuilder
}
err := StartControllers(s, kubeconfig, clientBuilder, stop, recorder, cloud)
if err := StartControllers(s, kubeconfig, clientBuilder, stop, recorder, cloud); err != nil {
glog.Fatalf("error running controllers: %v", err)
panic("unreachable")
}
}
if !s.LeaderElection.LeaderElect {