diff --git a/cmd/controller/main.go b/cmd/controller/main.go index 4ee2775c33..07aa82d2b6 100644 --- a/cmd/controller/main.go +++ b/cmd/controller/main.go @@ -110,7 +110,7 @@ func main() { defer cancel() lock := getNewLock(leaseLockName, podName, leaseLockNamespace) - runLeaderElection(lock, ctx, podName, ctrlOpts, log) + runLeaderElection(ctx, lock, podName, ctrlOpts, log) os.Exit(0) }