mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-31 13:59:04 +00:00
6b9dbce1d1
* 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>
18 lines
556 B
YAML
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" . }}
|