From 453a478f2ba0489040378e4dccde4e2c1165b89a Mon Sep 17 00:00:00 2001 From: Dann Date: Wed, 11 Sep 2024 11:48:03 -0400 Subject: [PATCH] adds configmapvolume to init container (#84) * adds configmapvolume to init container * bump version --- charts/application-core/Chart.yaml | 2 +- charts/application-core/templates/deployment.yaml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/charts/application-core/Chart.yaml b/charts/application-core/Chart.yaml index 5cc9281..91942c6 100644 --- a/charts/application-core/Chart.yaml +++ b/charts/application-core/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 4.2.2 +version: 4.2.3 maintainers: - name: Dominic DePasquale diff --git a/charts/application-core/templates/deployment.yaml b/charts/application-core/templates/deployment.yaml index 142cffc..f17cac9 100644 --- a/charts/application-core/templates/deployment.yaml +++ b/charts/application-core/templates/deployment.yaml @@ -93,6 +93,19 @@ spec: {{- end }} resources: {{- toYaml .Values.initContainer.resources | nindent 12 }} + volumeMounts: + {{- range $volume := .Values.extraConfigMapVolumes }} + - mountPath: "{{ .mountPath }}" + name: "{{ .name }}" + {{- if eq .readOnly false }} + readOnly: false + {{- else }} + readOnly: true + {{- end }} + {{- if .subPath }} + subPath: "{{ .subPath }}" + {{- end }} + {{- end }} terminationMessagePolicy: FallbackToLogsOnError {{- end }} containers: