fix: simplify expression
Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com>
This commit is contained in:
parent
a1634bdfda
commit
e9ea3c41e6
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ Create redis name and version as used by the chart label.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "argo-cd.redis.fullname" -}}
|
{{- define "argo-cd.redis.fullname" -}}
|
||||||
{{ $redisHa := (index .Values "redis-ha") }}
|
{{ $redisHa := (index .Values "redis-ha") }}
|
||||||
{{- if and $redisHa.enabled -}}
|
{{- if $redisHa.enabled -}}
|
||||||
{{- if $redisHa.haproxy.enabled -}}
|
{{- if $redisHa.haproxy.enabled -}}
|
||||||
{{- printf "%s-redis-ha-haproxy" .Release.Name | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-redis-ha-haproxy" .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue