Skip to content

Commit

Permalink
Merge pull request #141 from wave-k8s/fix-replica-type
Browse files Browse the repository at this point in the history
 fix(chart): Casting replicas to int before greater than
  • Loading branch information
toelke authored Feb 14, 2024
2 parents fd83f36 + f37c1b0 commit 119eaa0
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 119eaa0

Please sign in to comment.