charts/charts/stable/zigbee2mqtt/templates/common.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 6b9dbce1d1
[zigbee2mqtt] Migrate to common v3 (#956)
* added privileged flag to readme for clarity (#955)

* [zigbee2mqtt] Upgrade to common v3

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>

* Small README fix

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>

Co-authored-by: itobey <itobey@users.noreply.github.com>
2021-06-09 14:02:15 -04:00

18 lines
556 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Append the configMap volume to the volumes */}}
{{- define "zigbee2mqtt.settingsVolume" -}}
enabled: "true"
mountPath: "/app/configuration.yaml"
subPath: "configuration.yaml"
type: "custom"
volumeSpec:
configMap:
name: {{ include "common.names.fullname" . }}-settings
{{- end -}}
{{- $_ := set .Values.persistence "zigbee2mqtt-settings" (include "zigbee2mqtt.settingsVolume" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "common.all" . }}