fix(authentik-application): do not create group with empty list

This commit is contained in:
WrenIX 2023-09-26 19:24:18 +02:00
parent 352e65e513
commit b63544a291
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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 }}"

View file

@ -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: