From f37c1b0b0d999be735aabc49413c94be4b921687 Mon Sep 17 00:00:00 2001 From: Matheus Moraes Date: Thu, 2 Dec 2021 13:28:31 -0300 Subject: [PATCH] fix: Casting replicas to int before greater than --- charts/wave/templates/configmap.yaml | 2 +- charts/wave/templates/deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}