From 2fdcbb92ee9db433ade665c503955a111c967be9 Mon Sep 17 00:00:00 2001 From: Justin Hartman Date: Mon, 30 Sep 2024 09:00:30 -0500 Subject: [PATCH] Helm Chart - Enable Leader Election only if replica count greater than one (#463) * Enable Leader Election only if replica count greater than one * convert to int --- 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..49c64091 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 (int .Values.manager.replicas) 1 }} - --enable-leader-election + {{- end }} {{- if .Values.authProxy.enabled }} - --metrics-addr=127.0.0.1:8080 {{- end }}