We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf49f1 commit d5a6c49Copy full SHA for d5a6c49
pkg/manager/manager.go
@@ -494,6 +494,11 @@ func (o Options) AndFromOrDie(loader config.ControllerManagerConfiguration) Opti
494
}
495
496
func (o Options) setLeaderElectionConfig(obj v1alpha1.ControllerManagerConfigurationSpec) Options {
497
+ if obj.LeaderElection == nil {
498
+ // The source does not have any configuration; noop
499
+ return o
500
+ }
501
+
502
if !o.LeaderElection && obj.LeaderElection.LeaderElect != nil {
503
o.LeaderElection = *obj.LeaderElection.LeaderElect
504
0 commit comments