feat(argo-cd): Add username support for external redis (#1478)

Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
Signed-off-by: Eugene Lugovtsov <34510252+EugeneLugovtsov@users.noreply.github.com>

Co-authored-by: Eugene Lugovtsov <34510252+EugeneLugovtsov@users.noreply.github.com>
This commit is contained in:
Petr Drastil 2022-09-21 20:21:12 +02:00 committed by GitHub
parent e9dddd8289
commit 67659d4db0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{{- if and .Values.externalRedis.password (not .Values.externalRedis.existingSecret) }}
{{- if and (or .Values.externalRedis.username .Values.externalRedis.password) (not .Values.externalRedis.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
@ -13,5 +13,10 @@ metadata:
{{- end }}
type: Opaque
data:
redis-password: {{ .Values.externalRedis.password | b64enc }}
{{- with .Values.externalRedis.username }}
redis-username: {{ . | b64enc }}
{{- end }}
{{- with .Values.externalRedis.password }}
redis-password: {{ . | b64enc }}
{{- end }}
{{- end }}