mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
should check return err
This commit is contained in:
parent
0a3cf59396
commit
26626529a7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user