Skip to content

Commit

Permalink
docs: add comment to prevent leader-election flag binding to moved
Browse files Browse the repository at this point in the history
  • Loading branch information
idebeijer committed Jan 24, 2025
1 parent b0e5227 commit 57d8f63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cluster-autoscaler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ func main() {
}

leaderElection := leaderElectionConfiguration()
// Must be called before kube_flag.InitFlags() to ensure leader election flags are parsed and available.
componentopts.BindLeaderElectionFlags(&leaderElection, pflag.CommandLine)

logsapi.AddFlags(loggingConfig, pflag.CommandLine)
Expand Down

0 comments on commit 57d8f63

Please sign in to comment.