Complete Authentik Argo adoption

This commit is contained in:
2026-10-18 23:25:46 +02:00
parent 11ce791efa
commit 72b3d6cc6c
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ pins=$(kubectl --namespace authentik exec deployment/authentik-worker -- \
ak shell --command \
'from authentik.outposts.models import Outpost; [print(f"{o.name}={o.config.container_image}") for o in Outpost.objects.filter(name__in=["ldap", "radius", "rac"]).order_by("name")]')
printf '%s\n' "$pins"
if printf '%s\n' "$pins" | grep -Ev '^(ldap|rac|radius)=None$' >/dev/null; then
pin_lines=$(printf '%s\n' "$pins" | grep -E '^(ldap|rac|radius)=' || true)
if [ "$(printf '%s\n' "$pin_lines" | wc -l)" -ne 3 ] || \
printf '%s\n' "$pin_lines" | grep -Ev '^(ldap|rac|radius)=None$' >/dev/null; then
echo "A managed outpost still has an explicit database image override." >&2
exit 1
fi
+1 -1
View File
@@ -25,7 +25,7 @@ spec:
syncPolicy:
automated:
enabled: true
prune: false
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true