Skip to content

Commit

Permalink
Merge pull request #476 from jakobmoellerdev/OCPBUGS-11486-release-on…
Browse files Browse the repository at this point in the history
…-cancel

OCPBUGS-11486: fix: immediately drop leader election in case of shutdown to quicken restart
  • Loading branch information
openshift-merge-bot[bot] authored Nov 7, 2023
2 parents a877f70 + e2bb501 commit 7499d08
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 7499d08

Please sign in to comment.