Add config.php support
This commit is contained in:
parent
bb85f1e71d
commit
5835c67019
@ -4,8 +4,8 @@ name: basic-web-app
|
||||
PullName: basic-app-puller
|
||||
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
|
||||
type: application
|
||||
version: 2.1.2
|
||||
appVersion: "2.1.2"
|
||||
version: 2.2.0
|
||||
appVersion: "2.2.0"
|
||||
|
||||
dependencies:
|
||||
- name: postgresql
|
||||
|
@ -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 }}
|
||||
|
@ -11,6 +11,11 @@ mysql:
|
||||
postgresql:
|
||||
enabled: false
|
||||
|
||||
config-web:
|
||||
path: ""
|
||||
key: ""
|
||||
secretName: ""
|
||||
|
||||
updater:
|
||||
image:
|
||||
repository: glvx/web-updater
|
||||
|
Loading…
Reference in New Issue
Block a user