fix(frigate): fix detectors question list (#4705)

* add dict under list for detectors

Signed-off-by: mgale456 <55673155+mgale456@users.noreply.github.com>

* fix typo. change enabled to render_config

Signed-off-by: mgale456 <55673155+mgale456@users.noreply.github.com>

* bump version

Signed-off-by: mgale456 <55673155+mgale456@users.noreply.github.com>

Signed-off-by: mgale456 <55673155+mgale456@users.noreply.github.com>
This commit is contained in:
mgale456
2022-11-22 09:07:22 +02:00
committed by GitHub
parent 31233a6f81
commit 6a1026983c
3 changed files with 39 additions and 33 deletions
+1 -1
View File
@@ -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.4 version: 5.0.5
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- nvr - nvr
+37 -31
View File
@@ -85,38 +85,44 @@ questions:
type: list type: list
default: [] default: []
items: items:
- variable: name - variable: detector_entry
label: Name label: Detector Entry
description: Name of the detector
schema: schema:
type: string additional_attrs: true
required: true type: dict
default: "" attrs:
- variable: type - variable: name
label: Type label: Name
description: Name of the detector description: Name of the detector
schema: schema:
type: string type: string
required: true required: true
default: cpu default: ""
enum: - variable: type
- value: cpu label: Type
description: CPU description: Name of the detector
- value: edgetpu schema:
description: Edge TPU type: string
- variable: device required: true
label: Device default: cpu
description: Device name as defined here - https://coral.ai/docs/edgetpu/multiple-edgetpu/#using-the-tensorflow-lite-python-api enum:
schema: - value: cpu
type: string description: CPU
default: "" - value: edgetpu
- variable: num_threads description: Edge TPU
label: Number of Threads - variable: device
description: This value is only used for CPU types label: Device
schema: description: Device name as defined here - https://coral.ai/docs/edgetpu/multiple-edgetpu/#using-the-tensorflow-lite-python-api
type: int schema:
show_if: [["type", "=", "cpu"]] type: string
default: 3 default: ""
- variable: num_threads
label: Number of Threads
description: This value is only used for CPU types
schema:
type: int
show_if: [["type", "=", "cpu"]]
default: 3
- variable: model - variable: model
label: Model label: Model
schema: schema:
@@ -28,7 +28,7 @@ data:
password: {{ . }} password: {{ . }}
{{- end }} {{- end }}
{{- if .Values.frigate.detectors.enabled }} {{- if .Values.frigate.detectors.render_config }}
{{- if .Values.frigate.detectors.config }} {{- if .Values.frigate.detectors.config }}
detectors: detectors:
{{- range .Values.frigate.detectors.config }} {{- range .Values.frigate.detectors.config }}