File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,17 +5,15 @@ metadata:
55 labels :
66 app : drycc-redis
77 heritage : drycc
8- annotations :
9- " helm.sh/hook " : pre-install
108data :
119 {{ if eq .Values.global.redisLocation "on-cluster"}}
1210 {{- $redisAddrs := (list ) }}
13- {{ $redisNodeCount := .Values.replicas | int }}
11+ {{- $redisNodeCount := .Values.replicas | int }}
1412 {{- range $i := until $redisNodeCount }}
1513 {{- $redisAddrs = (append $redisAddrs (printf "drycc-redis-%d.drycc-redis.%s.svc.%s:6379" $i $.Release.Namespace $.Values.global.clusterDomain)) }}
1614 {{- end -}}
1715 addrs : {{ join "," $redisAddrs | b64enc }}
18- password : {{ randAlphaNum 32 | b64enc }}
16+ password : {{ include "common.secrets.lookup" (dict "secret" "redis-creds" "key" "password" "defaultValue" ( randAlphaNum 32) "context" $) }}
1917 {{ else if eq .Values.global.redisLocation "off-cluster"}}
2018 addrs : {{ .Values.addrs | b64enc }}
2119 password : {{ .Values.password | b64enc }}
You can’t perform that action at this time.
0 commit comments