File tree 2 files changed +3
-3
lines changed
charts/port-k8s-exporter/templates
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{{- if eq .Values.configMap.create true -}}
2
- {{- $stateKey := lower (default (uuidv4 | replace "-" "") .Values.stateKey) -}}
2
+ {{- $stateKey := lower (default (uuidv4 | replace "-" "") (tpl .Values.stateKey $) ) -}}
3
3
{{- $config_lookup := (lookup "v1" "ConfigMap" .Release.Namespace (include "port-k8s-exporter.configMapName" .)) -}}
4
4
{{- if (($config_lookup).data).state_key -}}
5
5
{{- $stateKey = $config_lookup.data.state_key -}}
Original file line number Diff line number Diff line change 78
78
volumeMounts :
79
79
- name : config-volume
80
80
mountPath : " /config"
81
- {{- with .Values.extraVolumeMounts }}
82
- {{- toYaml . | nindent 12 }}
81
+ {{- if .Values.extraVolumeMounts }}
82
+ {{- tpl ( toYaml .) $ | nindent 12 }}
83
83
{{- end }}
84
84
volumes :
85
85
- name : config-volume
You can’t perform that action at this time.
0 commit comments