chart: move minio credentials to separate secret, part of #490 (#1143)

This commit is contained in:
Ilya Kreymer 2023-09-06 17:35:30 -07:00 committed by GitHub
parent dce1ae6129
commit 38f596fd81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 10 deletions

View File

@ -1,4 +1,19 @@
{{- if .Values.minio_local }}
---
kind: Secret
apiVersion: v1
metadata:
name: minio-auth
namespace: {{ .Release.Namespace }}
type: Opaque
stringData:
{{- with (first .Values.storages) }}
MINIO_ROOT_USER: "{{ .access_key }}"
MINIO_ROOT_PASSWORD: "{{ .secret_key }}"
MC_HOST: "{{ $.Values.minio_scheme }}://{{ .access_key }}:{{ .secret_key }}@{{ $.Values.minio_host }}"
{{- end }}
---
kind: PersistentVolumeClaim
@ -81,7 +96,7 @@ spec:
args: ["server", "/data", "--console-address", ":9001"]
envFrom:
- secretRef:
name: auth-secrets
name: minio-auth
volumeMounts:
- name: data-minio

View File

@ -9,15 +9,6 @@ type: Opaque
stringData:
PASSWORD_SECRET: "{{ .Values.backend_password_secret }}"
{{- if .Values.minio_local }}
{{- with (first .Values.storages) }}
MINIO_ROOT_USER: "{{ .access_key }}"
MINIO_ROOT_PASSWORD: "{{ .secret_key }}"
MC_HOST: "{{ $.Values.minio_scheme }}://{{ .access_key }}:{{ .secret_key }}@{{ $.Values.minio_host }}"
{{- end }}
{{- end }}
EMAIL_SMTP_PORT: "{{ .Values.email.smtp_port }}"
EMAIL_SMTP_HOST: "{{ .Values.email.smtp_host }}"
EMAIL_SENDER: "{{ .Values.email.sender_email }}"