From e9ea3c41e6f3e10ec783b23e06aec29d0fc54cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Juan=20G=C3=B3mez=20Pe=C3=B1alver?= Date: Sat, 4 Apr 2020 00:38:03 +0100 Subject: [PATCH] fix: simplify expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Juan Gómez Peñalver --- charts/argo-cd/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/argo-cd/templates/_helpers.tpl b/charts/argo-cd/templates/_helpers.tpl index bdafdf6f..8edaf216 100644 --- a/charts/argo-cd/templates/_helpers.tpl +++ b/charts/argo-cd/templates/_helpers.tpl @@ -43,7 +43,7 @@ Create redis name and version as used by the chart label. */}} {{- define "argo-cd.redis.fullname" -}} {{ $redisHa := (index .Values "redis-ha") }} -{{- if and $redisHa.enabled -}} +{{- if $redisHa.enabled -}} {{- if $redisHa.haproxy.enabled -}} {{- printf "%s-redis-ha-haproxy" .Release.Name | trunc 63 | trimSuffix "-" -}} {{- end -}}