From ebc6afe015e2a4733e67eace2284d85c0056d0b6 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 8 Aug 2021 21:39:08 +0200 Subject: [PATCH] outpost: fix detection of embedded outpost Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/k8s/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/outposts/controllers/k8s/base.py b/authentik/outposts/controllers/k8s/base.py index 4a2126b45..800f7316f 100644 --- a/authentik/outposts/controllers/k8s/base.py +++ b/authentik/outposts/controllers/k8s/base.py @@ -10,6 +10,7 @@ from structlog.stdlib import get_logger from authentik import __version__ from authentik.lib.sentry import SentryIgnoredException +from authentik.outposts.managed import MANAGED_OUTPOST if TYPE_CHECKING: from authentik.outposts.controllers.kubernetes import KubernetesController @@ -43,7 +44,7 @@ class KubernetesObjectReconciler(Generic[T]): @property def is_embedded(self) -> bool: """Return true if the current outpost is embedded""" - return self.controller.outpost.managed != "" + return self.controller.outpost.managed == MANAGED_OUTPOST @property def noop(self) -> bool: