From bc9ff792a828fd9acf871d0e80e6fac65d90d1b8 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 29 Jul 2021 22:29:33 +0200 Subject: [PATCH] outposts: manage config for embedded outpost Signed-off-by: Jens Langhammer --- authentik/outposts/managed.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/authentik/outposts/managed.py b/authentik/outposts/managed.py index 5c66646e3..9983c0d86 100644 --- a/authentik/outposts/managed.py +++ b/authentik/outposts/managed.py @@ -1,6 +1,8 @@ """Outpost managed objects""" +from dataclasses import asdict + from authentik.managed.manager import EnsureExists, ObjectManager -from authentik.outposts.models import Outpost, OutpostType +from authentik.outposts.models import Outpost, OutpostConfig, OutpostType MANAGED_OUTPOST = "goauthentik.io/outposts/embedded" @@ -15,5 +17,15 @@ class OutpostManager(ObjectManager): MANAGED_OUTPOST, name="authentik Embedded Outpost", type=OutpostType.PROXY, + _config=asdict( + OutpostConfig( + authentik_host="", + kubernetes_disabled_components=[ + "deployment", + "service", + "secret", + ], + ) + ), ), ]