From d9d68c1e7b92480b147d7a1ebad166577cbf9d49 Mon Sep 17 00:00:00 2001 From: Basit Hasan Date: Sun, 27 Aug 2023 11:28:51 +0530 Subject: [PATCH] minor fix Signed-off-by: Basit Hasan --- cmd/controller/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }