Skip to content

Commit

Permalink
fix secret
Browse files Browse the repository at this point in the history
  • Loading branch information
klinch0 committed Dec 13, 2024
1 parent 4ce82a9 commit 45e1cf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/apps/redis/templates/redisfailover.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{{- 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
metadata:
name: {{ .Release.Name }}-auth
data:
password: {{ $password }}
{{- end }}
{{- end }}

---
Expand Down

0 comments on commit 45e1cf5

Please sign in to comment.