File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,11 @@ func run(healthCheck *metrics.HealthCheck, debuggingSnapshotter debuggingsnapsho
524
524
525
525
func main () {
526
526
klog .InitFlags (nil )
527
+
528
+ leaderElection := defaultLeaderElectionConfiguration ()
529
+ leaderElection .LeaderElect = true
530
+ options .BindLeaderElectionFlags (& leaderElection , pflag .CommandLine )
531
+
527
532
featureGate := utilfeature .DefaultMutableFeatureGate
528
533
loggingConfig := logsapi .NewLoggingConfiguration ()
529
534
@@ -541,10 +546,6 @@ func main() {
541
546
542
547
logs .InitLogs ()
543
548
544
- leaderElection := defaultLeaderElectionConfiguration ()
545
- leaderElection .LeaderElect = true
546
- options .BindLeaderElectionFlags (& leaderElection , pflag .CommandLine )
547
-
548
549
healthCheck := metrics .NewHealthCheck (* maxInactivityTimeFlag , * maxFailingTimeFlag )
549
550
550
551
klog .V (1 ).Infof ("Cluster Autoscaler %s" , version .ClusterAutoscalerVersion )
You can’t perform that action at this time.
0 commit comments