Skip to content

Commit

Permalink
fix: immediately drop leader election in case of shutdown to quicken …
Browse files Browse the repository at this point in the history
…restart

Signed-off-by: Jakob Möller <[email protected]>
  • Loading branch information
jakobmoellerdev committed Nov 6, 2023
1 parent a877f70 commit e2bb501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func run(cmd *cobra.Command, _ []string, opts *Options) error {
HealthProbeBindAddress: opts.healthProbeAddr,
LeaderElectionResourceLockInterface: le.Lock,
LeaderElection: !leaderElectionConfig.Disable,
LeaderElectionReleaseOnCancel: true,
})
if err != nil {
return fmt.Errorf("unable to start manager: %w", err)
Expand Down

0 comments on commit e2bb501

Please sign in to comment.