From 9b3ceaac995207fd137d67700c6ec066bb2c966d Mon Sep 17 00:00:00 2001 From: Floris Heringa Date: Mon, 30 Oct 2023 16:16:42 +0100 Subject: [PATCH] Fix check if server.ha.replicas is a number when set in values.yaml (#961) --- templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 8d4599cae..965c7f64d 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -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 -}}