28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
{{- if hasKey .Values.secrets "passwords" }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
{{- if hasKey .Values.pxc "clusterSecretName" }}
|
|
name: {{ .Values.pxc.clusterSecretName }}
|
|
{{- else }}
|
|
name: {{ include "pxc-database.fullname" . }}-secrets
|
|
{{- end }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{ include "pxc-database.labels" . | indent 4 }}
|
|
type: Opaque
|
|
data:
|
|
root: {{ .Values.secrets.passwords.root | b64enc }}
|
|
xtrabackup: {{ .Values.secrets.passwords.xtrabackup | b64enc }}
|
|
monitor: {{ .Values.secrets.passwords.monitor | b64enc }}
|
|
clustercheck: {{ .Values.secrets.passwords.clustercheck | b64enc }}
|
|
proxyadmin: {{ .Values.secrets.passwords.proxyadmin | b64enc }}
|
|
{{- if hasKey .Values.secrets.passwords "pmmserverkey" }}
|
|
pmmserverkey: {{ .Values.secrets.passwords.pmmserverkey | b64enc }}
|
|
{{- else if hasKey .Values.secrets.passwords "pmmserver" }}
|
|
pmmserver: {{ .Values.secrets.passwords.pmmserver | b64enc }}
|
|
{{- end}}
|
|
operator: {{ .Values.secrets.passwords.operator | b64enc }}
|
|
replication: {{ .Values.secrets.passwords.replication | b64enc }}
|
|
{{- end }}
|