From 97a61a58dfc8c8d4f60fe904625592c220620290 Mon Sep 17 00:00:00 2001 From: Justin Hartman Date: Wed, 25 Sep 2024 15:27:18 -0500 Subject: [PATCH] Enable Leader Election only if replica count greater than one --- charts/k6-operator/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/k6-operator/templates/deployment.yaml b/charts/k6-operator/templates/deployment.yaml index da34d652..559c3a47 100644 --- a/charts/k6-operator/templates/deployment.yaml +++ b/charts/k6-operator/templates/deployment.yaml @@ -53,7 +53,9 @@ spec: command: - /manager args: + {{- if gt .Values.manager.replicas 1 }} - --enable-leader-election + {{- end }} {{- if .Values.authProxy.enabled }} - --metrics-addr=127.0.0.1:8080 {{- end }}