fix(frigate): render parent max_frames only when at least one child has value (#5196)
This commit is contained in:
parent
cc3430a6a9
commit
9c62fbde7b
|
@ -24,7 +24,7 @@ sources:
|
|||
- https://github.com/blakeblackshear/frigate
|
||||
- https://hub.docker.com/r/blakeblackshear/frigate
|
||||
type: application
|
||||
version: 5.0.7
|
||||
version: 5.0.8
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- nvr
|
||||
|
|
|
@ -107,6 +107,7 @@ data:
|
|||
threshold: {{ .Values.frigate.detect.stationary.threshold | default 50 }}
|
||||
{{- if (hasKey .Values.frigate.detect.stationary "max_frames") }}
|
||||
{{- if or (hasKey .Values.frigate.detect.stationary.max_frames "default") (hasKey .Values.frigate.detect.stationary.max_frames "objects") }}
|
||||
{{- if or .Values.frigate.detect.stationary.max_frames.default .Values.frigate.detect.stationary.max_frames.objects }}
|
||||
max_frames:
|
||||
{{- with .Values.frigate.detect.stationary.max_frames.default }}
|
||||
default: {{ . }}
|
||||
|
@ -119,6 +120,7 @@ data:
|
|||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.frigate.objects.render_config }}
|
||||
|
|
Loading…
Reference in New Issue