diff --git a/charts/wave/templates/configmap.yaml b/charts/wave/templates/configmap.yaml index bd6493db..c39e67a8 100644 --- a/charts/wave/templates/configmap.yaml +++ b/charts/wave/templates/configmap.yaml @@ -1,4 +1,4 @@ -{{- if gt .Values.replicas 1.0 }} +{{- if gt (.Values.replicas | int64) 1 }} apiVersion: v1 kind: ConfigMap metadata: diff --git a/charts/wave/templates/deployment.yaml b/charts/wave/templates/deployment.yaml index 813e8053..fef18bc2 100644 --- a/charts/wave/templates/deployment.yaml +++ b/charts/wave/templates/deployment.yaml @@ -20,7 +20,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} name: {{ template "wave-fullname" . }} args: - {{- if gt .Values.replicas 1.0 }} + {{- if gt (.Values.replicas | int64) 1 }} - --leader-election=true - --leader-election-id={{ template "wave-fullname" . }} - --leader-election-namespace={{ .Release.Namespace }}