diff --git a/packages/apps/redis/templates/redisfailover.yaml b/packages/apps/redis/templates/redisfailover.yaml index b73b054b..0d7c4e03 100644 --- a/packages/apps/redis/templates/redisfailover.yaml +++ b/packages/apps/redis/templates/redisfailover.yaml @@ -1,9 +1,9 @@ {{- if .Values.authEnabled }} {{- $existingPassword := lookup "v1" "Secret" .Release.Namespace (printf "%s-auth" .Release.Name) }} - {{- $password := randAlphaNum 16 | b64enc }} + {{- $password := randAlphaNum 32 | b64enc }} {{- if $existingPassword }} {{- $password = index $existingPassword.data "password" }} - {{- else }} + {{- end }} --- apiVersion: v1 kind: Secret @@ -11,7 +11,6 @@ metadata: name: {{ .Release.Name }}-auth data: password: {{ $password }} - {{- end }} {{- end }} ---