From d9a26d86c5c9d1e21ef4e48eb765e77fa216ee08 Mon Sep 17 00:00:00 2001 From: Anuj Khandelwal Date: Wed, 17 Jan 2024 12:07:17 +0530 Subject: [PATCH] fix: make mount files value optional --- stable/app/templates/deployment.yaml | 4 ++-- stable/app/templates/file-configmap.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/app/templates/deployment.yaml b/stable/app/templates/deployment.yaml index a42576c0..6e347143 100644 --- a/stable/app/templates/deployment.yaml +++ b/stable/app/templates/deployment.yaml @@ -65,7 +65,7 @@ spec: args: {{- toYaml .Values.container.args | nindent 12 }} volumeMounts: - {{- if .Values.mount.files }} + {{- if ((.Values.mount).files) }} - mountPath: {{ .Values.mount.path }} name: mounted-files {{- end }} @@ -108,7 +108,7 @@ spec: configMap: name: {{ template "app.fullname" . }}-telegraf {{- end }} - {{- if .Values.mount.files }} + {{- if ((.Values.mount).files) }} - name: mounted-files configMap: name: {{ template "app.fullname" . }}-files diff --git a/stable/app/templates/file-configmap.yaml b/stable/app/templates/file-configmap.yaml index 7d801b29..a24a31a3 100644 --- a/stable/app/templates/file-configmap.yaml +++ b/stable/app/templates/file-configmap.yaml @@ -1,4 +1,4 @@ -{{ if .Values.mount.files }} +{{ if ((.Values.mount).files) }} apiVersion: v1 kind: ConfigMap metadata: