From 524edb4a8c5e80dbcd6a791db3c8e8a51dc4d6f1 Mon Sep 17 00:00:00 2001 From: Pan Luo Date: Tue, 29 Oct 2024 15:05:42 -0700 Subject: [PATCH] Allow to use external secret for moodle --- moodle/Chart.yaml | 2 +- moodle/templates/secrets.yaml | 2 ++ moodle/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/moodle/Chart.yaml b/moodle/Chart.yaml index 99269bc..4a3a25c 100644 --- a/moodle/Chart.yaml +++ b/moodle/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: moodle -version: 0.1.10 +version: 0.1.11 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments keywords: - moodle diff --git a/moodle/templates/secrets.yaml b/moodle/templates/secrets.yaml index 9ce5364..7db321d 100644 --- a/moodle/templates/secrets.yaml +++ b/moodle/templates/secrets.yaml @@ -1,3 +1,4 @@ +{{ if .Values.moodlePassword }} apiVersion: v1 kind: Secret metadata: @@ -19,6 +20,7 @@ data: moodle_password: {{ randAlphaNum 10 | b64enc | quote }} {{- end }} smtp_password: {{ default "" .Values.smtpPassword | b64enc | quote }} +{{- end }} {{ if .Values.shib.sp.key }} --- diff --git a/moodle/values.yaml b/moodle/values.yaml index 6699387..ac58b0d 100644 --- a/moodle/values.yaml +++ b/moodle/values.yaml @@ -43,6 +43,8 @@ moodleUsername: user ## Defaults to a random 10-character alphanumeric string if not set ## # moodlePassword: +# or use existing secret for moodle password +# moodleExistingSecret: ## Admin email ## ref: https://github.com/bitnami/bitnami-docker-moodle#configuration