From 8491cc01adf0a87147f861d99e8ed347beef0950 Mon Sep 17 00:00:00 2001 From: Andrey Voronkov Date: Tue, 4 Feb 2020 08:43:26 +0300 Subject: [PATCH] [stable/moodle] Set MOODLE_SKIP_INSTALL environment variable via values.yaml config. (#20523) It is very useful for data migration or restoring database from backup. Signed-off-by: Andrey Voronkov --- stable/moodle/Chart.yaml | 2 +- stable/moodle/README.md | 1 + stable/moodle/templates/deployment.yaml | 2 ++ stable/moodle/values.yaml | 5 +++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/moodle/Chart.yaml b/stable/moodle/Chart.yaml index 67b8ab7545..440bf23659 100644 --- a/stable/moodle/Chart.yaml +++ b/stable/moodle/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: moodle -version: 7.0.8 +version: 7.1.0 appVersion: 3.8.1 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: diff --git a/stable/moodle/README.md b/stable/moodle/README.md index f57bf21370..8567ccce43 100644 --- a/stable/moodle/README.md +++ b/stable/moodle/README.md @@ -61,6 +61,7 @@ The following table lists the configurable parameters of the Moodle chart and th | `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | | `nameOverride` | String to partially override moodle.fullname template with a string (will prepend the release name) | `nil` | | `fullnameOverride` | String to fully override moodle.fullname template with a string | `nil` | +| `moodleSkipInstall` | Skip moodle installation wizard (`no` / `yes`) | `no` | | `moodleUsername` | User of the application | `user` | | `moodlePassword` | Application password | _random 10 character alphanumeric string_ | | `moodleEmail` | Admin email | `user@example.com` | diff --git a/stable/moodle/templates/deployment.yaml b/stable/moodle/templates/deployment.yaml index 8dd4c08298..62a343f734 100644 --- a/stable/moodle/templates/deployment.yaml +++ b/stable/moodle/templates/deployment.yaml @@ -73,6 +73,8 @@ spec: name: {{ printf "%s-%s" .Release.Name "externaldb" }} key: db-password {{- end }} + - name: MOODLE_SKIP_INSTALL + value: {{ default "no" .Values.moodleSkipInstall | quote }} - name: MOODLE_USERNAME value: {{ default "" .Values.moodleUsername | quote }} - name: MOODLE_PASSWORD diff --git a/stable/moodle/values.yaml b/stable/moodle/values.yaml index 49920791b3..ab28c2625c 100644 --- a/stable/moodle/values.yaml +++ b/stable/moodle/values.yaml @@ -35,6 +35,11 @@ image: ## # fullnameOverride: +## Skip Moodle installation wizard. Useful for migrations and restoring from SQL dump +## ref: https://github.com/bitnami/bitnami-docker-moodle#configuration +## +moodleSkipInstall: "no" + ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-moodle#configuration ##