fix(authentik-application): support group parent

This commit is contained in:
WrenIX 2023-09-04 04:22:28 +02:00
parent 21d4aab0e3
commit bc16cc73de
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
2 changed files with 7 additions and 2 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.1.0 version: 0.1.1

View file

@ -134,6 +134,11 @@ stringData:
state: {{ $group.state | default "present" | quote }} state: {{ $group.state | default "present" | quote }}
attrs: attrs:
name: {{ $group.slug | quote }} name: {{ $group.slug | quote }}
{{- with $group.parent }}
parent: !Find [authentik_core.group, [name, {{ . | quote }}]]
{{- else}}
parent: null
{{- end }}
- model: authentik_policies.PolicyBinding - model: authentik_policies.PolicyBinding
id: {{ $group.slug | quote }} id: {{ $group.slug | quote }}