From 45c941b6641abefed643d7b02688f29702d53f1b Mon Sep 17 00:00:00 2001 From: ynlamy Date: Thu, 18 Jun 2026 09:42:20 +0200 Subject: [PATCH] (Feature) Add extraVolumes and extraVolumeMounts in chart Helm --- chart/templates/deployment.yaml | 6 ++++++ chart/values.yaml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index cbe2ca74..ea957f10 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -65,6 +65,9 @@ spec: mountPath: /var/cache/nginx - name: nginx-run mountPath: /var/run + {{- if .Values.extraVolumeMounts }} + {{- toYaml .Values.extraVolumeMounts | nindent 12 }} + {{- end }} volumes: - name: nginx-tmp emptyDir: {} @@ -72,3 +75,6 @@ spec: emptyDir: {} - name: nginx-run emptyDir: {} + {{- if .Values.extraVolumes }} + {{- toYaml .Values.extraVolumes | nindent 8 }} + {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index 676d38c6..20422f61 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -86,3 +86,7 @@ readinessProbe: httpGet: path: / port: http + +extraVolumes: [] + +extraVolumeMounts: []