scale-catalog/stable/frigate/12.3.0/templates/_configmap.tpl
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

43 lines
831 B
Smarty

{{/* Define the configmap */}}
{{- define "frigate.configmap" -}}
enabled: true
data:
{{- if .Values.frigateConfig }}
config.yml: |
{{- .Values.frigateConfig | toYaml | nindent 4 }}
{{- else }}
config.yml.dummy: |
mqtt:
enabled: false
cameras:
dummy:
enabled: false
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:554/rtsp
roles:
- detect
{{- end }}
{{- end -}}
{{- define "frigate.configVolume" -}}
enabled: true
type: configmap
objectName: frigate-config
targetSelector:
main:
main: {}
init-config: {}
{{- if .Values.frigateConfig }}
mountPath: /config
items:
- key: config.yml
path: config.yml
{{- else }}
mountPath: /dummy-config
items:
- key: config.yml.dummy
path: config.yml.dummy
{{- end -}}
{{- end -}}