fix(authentik-application): do not create group with empty list
This commit is contained in:
parent
352e65e513
commit
b63544a291
3 changed files with 4 additions and 3 deletions
|
@ -3,4 +3,4 @@ name: authentik-application
|
||||||
description: A Chart to deploy a secret for the authentik blueprint-sidecar
|
description: A Chart to deploy a secret for the authentik blueprint-sidecar
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: 0.3.2
|
version: 0.3.3
|
|
@ -145,7 +145,7 @@ stringData:
|
||||||
meta_publisher: {{ . | quote }}
|
meta_publisher: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (eq (len .Values.blueprint.groups) 0) }}
|
{{- if (not (kindIs "slice" .Values.blueprint.groups)) }}
|
||||||
|
|
||||||
- model: authentik_core.group
|
- model: authentik_core.group
|
||||||
id: "app: {{ .Values.blueprint.application.slug }}"
|
id: "app: {{ .Values.blueprint.application.slug }}"
|
||||||
|
|
|
@ -48,9 +48,10 @@ blueprint:
|
||||||
description: ""
|
description: ""
|
||||||
publisher: ""
|
publisher: ""
|
||||||
# -- additional groups
|
# -- additional groups
|
||||||
|
# disable any groups by set groups: [] (to a slice)
|
||||||
# example:
|
# example:
|
||||||
# - slug: "app: grafana-admin"
|
# - slug: "app: grafana-admin"
|
||||||
# parent: "app: infra"
|
# parent: "app: infra"
|
||||||
# bindID: uuid
|
# bindID: uuid
|
||||||
#
|
#
|
||||||
groups: []
|
groups:
|
||||||
|
|
Loading…
Add table
Reference in a new issue