-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create new secret for moodle-database values (except password), that …
…is used by backup/restore. so that backup/restore can work properly with all possible databases
- Loading branch information
1 parent
63d23a1
commit 8228014
Showing
3 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
charts/dbp-moodle/templates/secrets/moodle-database-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: "moodle-database" | ||
namespace: "{{ .Release.Namespace }}" | ||
stringData: | ||
{{ if .Values.moodle.mariadb.enabled -}} | ||
type: "mariadb" | ||
host: "moodle-mariadb-0" | ||
port: "3306" | ||
user: "{{ .Values.moodle.mariadb.username }}" | ||
name: "{{ .Values.moodle.mariadb.database }}" | ||
{{- else if .Values.moodle.externalDatabase -}} | ||
type: "{{ .Values.moodle.externalDatabase.type }}" | ||
host: "{{ .Values.moodle.externalDatabase.host }}" | ||
port: "{{ .Values.moodle.externalDatabase.port }}" | ||
user: "{{ .Values.moodle.externalDatabase.user }}" | ||
name: "{{ .Values.moodle.externalDatabase.database }}" | ||
{{- end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters