Skip to content

Commit

Permalink
fix: make mount files value optional
Browse files Browse the repository at this point in the history
  • Loading branch information
anujk14 committed Jan 17, 2024
1 parent e308137 commit d9a26d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stable/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion stable/app/templates/file-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if .Values.mount.files }}
{{ if ((.Values.mount).files) }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down

0 comments on commit d9a26d8

Please sign in to comment.