From 1d79a3979337429e08f56c58984e603c410e7231 Mon Sep 17 00:00:00 2001 From: Floris Heringa Date: Tue, 3 Oct 2023 16:12:17 +0200 Subject: [PATCH] Fix check if server.ha.replicas is a number --- 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 -}}