outposts: manage config for embedded outpost

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-07-29 22:29:33 +02:00
parent 8495ff9fc0
commit bc9ff792a8
1 changed files with 13 additions and 1 deletions

View File

@ -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",
],
)
),
),
]