2022-03-03 23:48:24 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
|
|
|
{{- include "common.setup" . }}
|
|
|
|
|
2022-05-10 21:48:28 +00:00
|
|
|
{{/* Render configmap for hass */}}
|
|
|
|
{{- include "hass.configmap" . }}
|
2022-03-03 23:48:24 +00:00
|
|
|
|
|
|
|
{{/* Append the general secret volumes to the volumes */}}
|
2022-05-10 21:48:28 +00:00
|
|
|
{{- define "hass.initvolume" -}}
|
2022-03-03 23:48:24 +00:00
|
|
|
enabled: "true"
|
|
|
|
mountPath: "/config/init"
|
|
|
|
readOnly: true
|
|
|
|
type: "custom"
|
|
|
|
volumeSpec:
|
|
|
|
configMap:
|
|
|
|
name: {{ include "common.names.fullname" . }}-init
|
|
|
|
defaultMode: 0777
|
|
|
|
{{- end -}}
|
|
|
|
|
2022-05-10 21:48:28 +00:00
|
|
|
{{- $_ := set .Values.persistence "init" (include "hass.initvolume" . | fromYaml) -}}
|
2022-03-03 23:48:24 +00:00
|
|
|
|
|
|
|
{{/* Render the templates */}}
|
|
|
|
{{ include "common.postSetup" . }}
|