fix(authentik-application ): slice of groups

This commit is contained in:
WrenIX 2023-11-28 22:52:06 +01:00
parent 13e8beaabc
commit 272223fec3
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
5 changed files with 15 additions and 3 deletions

View file

@ -2,5 +2,5 @@ apiVersion: v2
name: authentik-application name: authentik-application
type: application type: application
version: 0.3.4 version: 0.3.5
description: "A Chart to deploy a secret for the authentik blueprint-sidecar." description: "A Chart to deploy a secret for the authentik blueprint-sidecar."

View file

@ -1,6 +1,6 @@
# authentik-application # authentik-application
![Version: 0.3.4](https://img.shields.io/badge/Version-0.3.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![Version: 0.3.5](https://img.shields.io/badge/Version-0.3.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
A Chart to deploy a secret for the authentik blueprint-sidecar. A Chart to deploy a secret for the authentik blueprint-sidecar.

View file

@ -0,0 +1,5 @@
blueprint:
groups:
- slug: "app: grafana-admin"
bindID: uuid

View file

@ -1,5 +1,6 @@
{{- $bindPolicyID := get . "bindPolicyID" }} {{- $bindPolicyID := get . "bindPolicyID" }}
{{- with get . "root" }} {{- with get . "root" }}
{{- $ = . }}
{{- if (not (kindIs "slice" .Values.blueprint.groups)) }} {{- if (not (kindIs "slice" .Values.blueprint.groups)) }}
- model: authentik_core.group - model: authentik_core.group

View file

@ -5,6 +5,12 @@ HELM_REPO=${HELM_REPO:-oci://codeberg.org/wrenix/helm-charts}
helm-docs -t ./README.md.gotmpl -t _docs.gotmpl helm-docs -t ./README.md.gotmpl -t _docs.gotmpl
for p in * ; do for p in * ; do
if \
[ $p == "alertmanager-matrix" ] || \
[ $p == "alertmanager-ntfy" ] \
; then
continue
fi
if [ ! -d $p ]; then if [ ! -d $p ]; then
continue; continue;
fi fi
@ -30,7 +36,7 @@ for p in * ; do
if [ "$changes" -gt "0" ]; then if [ "$changes" -gt "0" ]; then
# check / lint if version was increased correct # check / lint if version was increased correct
if [ "$tag" == "$lastTag" ]; then if [ "$tag" == "$lastTag" ]; then
echo "changed helmchart should create new pkg" echo "changed helmchart should create new pkg - diff line count has:"
echo $(git diff "${lastTag}" -- "${p}" | wc -l); echo $(git diff "${lastTag}" -- "${p}" | wc -l);
exit 1 exit 1
fi fi