Skip to content

Commit

Permalink
Changed postgres password to pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
marhode committed Sep 17, 2024
1 parent 1c307ec commit 7247689
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/dbp-moodle/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ false
{{- default (randAlphaNum 16) .Values.dbpMoodle.secrets.moodle_password }}
{{- end -}}

{{- define "dbpMoodle.secrets.postgres_admin_password" -}}
{{- default (randAlphaNum 16) .Values.dbpMoodle.secrets.postgres_admin_password }}
{{- define "dbpMoodle.secrets.pgsql_admin_password" -}}
{{- default (randAlphaNum 16) .Values.dbpMoodle.secrets.pgsql_admin_password }}
{{- end -}}

{{- define "dbpMoodle.secrets.mariadb_password" -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/dbp-moodle/templates/secrets/moodle-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stringData:
moodle-password: {{ include "dbpMoodle.secrets.moodle_password" . }}
{{- if .Values.postgresql.enabled }}
mariadb-password: {{ include "dbpMoodle.secrets.mariadb_password" . }}
postgres-admin-password: {{ include "dbpMoodle.secrets.postgres_admin_password" . }}
pgsql-admin-password: {{ include "dbpMoodle.secrets.pgsql_admin_password" . }}
{{- end }}
{{- if .Values.mariadb.enabled }}
mariadb-password: {{ include "dbpMoodle.secrets.mariadb_password" . }}
Expand Down
6 changes: 3 additions & 3 deletions charts/dbp-moodle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ dbpMoodle:
secrets:
useChartSecret: false
moodle_password: ""
postgres_admin_password: ""
pgsql_admin_password: ""
mariadb_password: ""
mariadb_root_password: ""
etherpad_postgresql_password: ""
Expand Down Expand Up @@ -140,7 +140,7 @@ dbpMoodle:
existingSecretKeyS3Secret: ""
affinity: {}
tolerations: []

rules:
- apiGroups: ["apps"]
resources: ["deployments/scale", "deployments"]
Expand Down Expand Up @@ -302,7 +302,7 @@ postgresql:
database: "moodle"
existingSecret: "moodle"
secretKeys:
adminPasswordKey: "postgres-admin-password"
adminPasswordKey: "pgsql-admin-password"
userPasswordKey: "mariadb-password" # moodle expects its db password key to be mariadb-password
metrics:
enabled: true
Expand Down

0 comments on commit 7247689

Please sign in to comment.