diff --git a/cmd/operator/operator.go b/cmd/operator/operator.go index 548ba6453..4c34370c0 100644 --- a/cmd/operator/operator.go +++ b/cmd/operator/operator.go @@ -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)