diff --git a/Chart.yaml b/Chart.yaml index c58bbf4..c91e369 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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 diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 8983287..4e81478 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -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 }} diff --git a/values.yaml b/values.yaml index f0cece2..99105ea 100644 --- a/values.yaml +++ b/values.yaml @@ -11,6 +11,11 @@ mysql: postgresql: enabled: false +config-web: + path: "" + key: "" + secretName: "" + updater: image: repository: glvx/web-updater