From bc16cc73dedc28e5775609ed69162abdf4a7a719 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Mon, 4 Sep 2023 04:22:28 +0200 Subject: [PATCH] fix(authentik-application): support group parent --- authentik-application/Chart.yaml | 2 +- authentik-application/templates/secrets.yaml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/authentik-application/Chart.yaml b/authentik-application/Chart.yaml index 970d3f9..5b9f633 100644 --- a/authentik-application/Chart.yaml +++ b/authentik-application/Chart.yaml @@ -3,4 +3,4 @@ name: authentik-application description: A Chart to deploy a secret for the authentik blueprint-sidecar type: application -version: 0.1.0 \ No newline at end of file +version: 0.1.1 \ No newline at end of file diff --git a/authentik-application/templates/secrets.yaml b/authentik-application/templates/secrets.yaml index 3d9e322..2b91cb0 100644 --- a/authentik-application/templates/secrets.yaml +++ b/authentik-application/templates/secrets.yaml @@ -134,7 +134,12 @@ stringData: state: {{ $group.state | default "present" | quote }} attrs: name: {{ $group.slug | quote }} - + {{- with $group.parent }} + parent: !Find [authentik_core.group, [name, {{ . | quote }}]] + {{- else}} + parent: null + {{- end }} + - model: authentik_policies.PolicyBinding id: {{ $group.slug | quote }} identifiers: