18 lines
523 B
YAML
18 lines
523 B
YAML
{{/* Make sure all variables are set properly */}}
|
|
{{- include "common.setup" . }}
|
|
|
|
{{/* Append the configMap volume to the volumes */}}
|
|
{{- define "frigate.configVolume" -}}
|
|
enabled: "true"
|
|
mountPath: "/config/config.yml"
|
|
subPath: "config.yml"
|
|
type: "custom"
|
|
volumeSpec:
|
|
configMap:
|
|
name: {{ template "common.names.fullname" . }}-config
|
|
{{- end -}}
|
|
{{- $_ := set .Values.persistence "frigate-config" (include "frigate.configVolume" . | fromYaml) -}}
|
|
|
|
{{/* Render the templates */}}
|
|
{{ include "common.postSetup" . }}
|