Quiet Authentik outpost verification
This commit is contained in:
@@ -15,8 +15,8 @@ fi
|
||||
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"
|
||||
pin_lines=$(printf '%s\n' "$pins" | grep -E '^(ldap|rac|radius)=' || true)
|
||||
printf '%s\n' "$pin_lines"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user