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:
parent
e9dddd8289
commit
67659d4db0
4 changed files with 12 additions and 6 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue