Skip to content

Commit

Permalink
Fix check if server.ha.replicas is a number when set in values.yaml (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfloris authored Oct 30, 2023
1 parent f72df27 commit 9b3ceaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Set's the replica count based on the different modes configured by user
{{ if eq .mode "standalone" }}
{{- default 1 -}}
{{ else if eq .mode "ha" }}
{{- if kindIs "int64" .Values.server.ha.replicas -}}
{{- if or (kindIs "int64" .Values.server.ha.replicas) (kindIs "float64" .Values.server.ha.replicas) -}}
{{- .Values.server.ha.replicas -}}
{{ else }}
{{- 3 -}}
Expand Down

0 comments on commit 9b3ceaa

Please # to comment.