Skip to content

Commit

Permalink
fix: Casting replicas to int before greater than
Browse files Browse the repository at this point in the history
  • Loading branch information
math3vz authored and toelke committed Feb 14, 2024
1 parent fd83f36 commit f37c1b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/wave/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if gt .Values.replicas 1.0 }}
{{- if gt (.Values.replicas | int64) 1 }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/wave/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit f37c1b0

Please sign in to comment.