github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/argo-cd/templates/argocd-configs/externalredis-secret.yaml (about) 1 {{- if and (or .Values.externalRedis.username .Values.externalRedis.password) (not .Values.externalRedis.existingSecret) }} 2 apiVersion: v1 3 kind: Secret 4 metadata: 5 name: {{ include "argo-cd.redis.fullname" . }} 6 namespace: {{ .Release.Namespace | quote }} 7 labels: 8 {{- include "argo-cd.labels" (dict "context" $) | nindent 4 }} 9 {{- with .Values.externalRedis.secretAnnotations }} 10 annotations: 11 {{- range $key, $value := . }} 12 {{ $key }}: {{ $value | quote }} 13 {{- end }} 14 {{- end }} 15 type: Opaque 16 data: 17 {{- with .Values.externalRedis.username }} 18 redis-username: {{ . | b64enc }} 19 {{- end }} 20 {{- with .Values.externalRedis.password }} 21 redis-password: {{ . | b64enc }} 22 {{- end }} 23 {{- end }}