From 1fb2701f53e7b1c46eea65046ce43e4619c04384 Mon Sep 17 00:00:00 2001 From: pieter Date: Thu, 5 Feb 2026 07:14:14 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=9C=9F=E3=83=90=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=A2=E3=83=83=E3=83=97=E6=A9=9F=E8=83=BD=E3=81=AE=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/backup-secret.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 templates/backup-secret.yaml diff --git a/templates/backup-secret.yaml b/templates/backup-secret.yaml new file mode 100644 index 0000000..1880dca --- /dev/null +++ b/templates/backup-secret.yaml @@ -0,0 +1,21 @@ +{{- if and .Values.backup.enabled (not .Values.backup.mysql.existingSecret) }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "phpmyadmin-nginx.fullname" . }}-backup + labels: + {{- include "phpmyadmin-nginx.labels" . | nindent 4 }} + app.kubernetes.io/component: backup +type: Opaque +data: + {{- if .Values.backup.mysql.user }} + mysql-user: {{ .Values.backup.mysql.user | b64enc | quote }} + {{- else }} + mysql-user: {{ "backup" | b64enc | quote }} + {{- end }} + {{- if .Values.backup.mysql.password }} + mysql-password: {{ .Values.backup.mysql.password | b64enc | quote }} + {{- else }} + mysql-password: {{ randAlphaNum 32 | b64enc | quote }} + {{- end }} +{{- end }} \ No newline at end of file