Fix check if server.ha.replicas is a number when set in values.yaml (#961)

This commit is contained in:
Floris Heringa 2023-10-30 16:16:42 +01:00 committed by GitHub
parent f72df27d56
commit 9b3ceaac99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 -}}