-
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.
seperate php.ini into own configmap, allow config.php to be replaced …
…with existing by chart values
- Loading branch information
1 parent
8e8d3a6
commit b75d9a4
Showing
4 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
charts/dbp-moodle/templates/configmaps/moodle-php-ini-configmap.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,8 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: moodle-php-ini | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
php.ini: | | ||
{{- .Files.Get "scripts/php.ini" | nindent 4 }} |
7 changes: 4 additions & 3 deletions
7
charts/dbp-moodle/templates/secrets/moodle-config-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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{{ if not .Values.dbpMoodle.existingConfig -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: moodle-config | ||
name: moodle-php-config | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
php.ini: {{ .Files.Get "scripts/php.ini" | b64enc }} | ||
config.php: {{ tpl (.Files.Get "scripts/config.php") . | b64enc }} | ||
config.php: {{ tpl (.Files.Get "scripts/config.php") . | b64enc }} | ||
{{- 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
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