Skip to content

Commit 45e1cf5

Browse files
committed
fix secret
1 parent 4ce82a9 commit 45e1cf5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎packages/apps/redis/templates/redisfailover.yaml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{{- if .Values.authEnabled }}
22
{{- $existingPassword := lookup "v1" "Secret" .Release.Namespace (printf "%s-auth" .Release.Name) }}
3-
{{- $password := randAlphaNum 16 | b64enc }}
3+
{{- $password := randAlphaNum 32 | b64enc }}
44
{{- if $existingPassword }}
55
{{- $password = index $existingPassword.data "password" }}
6-
{{- else }}
6+
{{- end }}
77
---
88
apiVersion: v1
99
kind: Secret
1010
metadata:
1111
name: {{ .Release.Name }}-auth
1212
data:
1313
password: {{ $password }}
14-
{{- end }}
1514
{{- end }}
1615

1716
---

0 commit comments

Comments
 (0)