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