Add tentative support for php ini config

This commit is contained in:
Guilhem Lavaux 2025-03-21 09:28:03 +01:00
parent 3114197aaa
commit 8383c4330b
3 changed files with 23 additions and 2 deletions

View file

@ -66,6 +66,12 @@ spec:
- name: {{ .name }}
mountPath: {{ .path }}
{{- end}}
{{- range .Value.extraPhpIni }}
- name: php-config
mountPath: {{ printf "/usr/local/etc/php/conf.d/%s .conf }}
readOnly: true
subPath: {{ .key }}
{{- end}}
env:
{{- with .Values.env.plain }}
{{- toYaml . | nindent 12 }}
@ -169,6 +175,16 @@ spec:
- key: {{ .Values.configWeb.key }}
path: {{ .Values.configWeb.key }}
{{- end }}
{{- if (gt (len .Values.extraPhpIni) 0) }}
- name: php-config
secret:
secretName: php-config-secret
{{- range .Values.extraPhpIni }}
items:
- key: {{ .key }}
path: {{ .key }}
{{- end }}
{{- end }}
{{- range .Values.extraVolumesWeb }}
- name: {{ .name }}
persistentVolumeClaim: