Skip to content

Commit

Permalink
Conditionally enable it
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Sep 3, 2024
1 parent 6f9b38c commit ef53c29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion helm-chart/templates/configmap-yamlconf.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{{- if .Values.yamlSettings.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "unnamed.fullname" . }}-django-yamlconf
data:
comptest.yaml: |
{{- range $key, $val := .Values.yamlSettings }}
{{- range $key, $val := .Values.yamlSettings.overrides }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ tolerations: []

affinity: {}

yamlSettings: {}
yamlSettings:
enabled: false
overrides: {}

0 comments on commit ef53c29

Please sign in to comment.