Add config.php support
This commit is contained in:
parent
bb85f1e71d
commit
5835c67019
3 changed files with 21 additions and 2 deletions
|
@ -54,6 +54,12 @@ spec:
|
|||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: "/var/www/html"
|
||||
{{- if not (eq "" .Values.config-web.path) }}
|
||||
- name: config
|
||||
mountPath: {{ printf "/var/www/html/%s" .Values.config-web.path }}
|
||||
readOnly: true
|
||||
subPath: {{ .Values.config-web.key }}
|
||||
{{- end}}
|
||||
env:
|
||||
{{- with .Values.env.plain }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
|
@ -149,3 +155,11 @@ spec:
|
|||
secretName: {{ .Values.updater.ssh.secretName }}
|
||||
defaultMode: 0400
|
||||
{{- end }}
|
||||
{{- if not (eq "" .Values.config-web.path) }}
|
||||
- name: config
|
||||
secret:
|
||||
secretName: {{ .Values.config-web.secretName }}
|
||||
items:
|
||||
- key: {{ .Values.config-web.key }}
|
||||
path: {{ .Values.config-web.key }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue