2019-01-30 21:23:17 +08:00
|
|
|
{{- if and .Values.auth (not .Values.existingSecret) -}}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: {{ template "redis-ha.fullname" . }}
|
2020-05-28 21:06:43 +08:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2019-01-30 21:23:17 +08:00
|
|
|
labels:
|
|
|
|
{{ include "labels.standard" . | indent 4 }}
|
|
|
|
type: Opaque
|
|
|
|
data:
|
2020-05-28 21:06:43 +08:00
|
|
|
{{ .Values.authKey }}: {{ .Values.redisPassword | b64enc | quote }}
|
2019-01-30 21:23:17 +08:00
|
|
|
{{- end -}}
|