outpost: fix detection of embedded outpost
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
45bee4b4dc
commit
ebc6afe015
|
@ -10,6 +10,7 @@ from structlog.stdlib import get_logger
|
||||||
|
|
||||||
from authentik import __version__
|
from authentik import __version__
|
||||||
from authentik.lib.sentry import SentryIgnoredException
|
from authentik.lib.sentry import SentryIgnoredException
|
||||||
|
from authentik.outposts.managed import MANAGED_OUTPOST
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from authentik.outposts.controllers.kubernetes import KubernetesController
|
from authentik.outposts.controllers.kubernetes import KubernetesController
|
||||||
|
@ -43,7 +44,7 @@ class KubernetesObjectReconciler(Generic[T]):
|
||||||
@property
|
@property
|
||||||
def is_embedded(self) -> bool:
|
def is_embedded(self) -> bool:
|
||||||
"""Return true if the current outpost is embedded"""
|
"""Return true if the current outpost is embedded"""
|
||||||
return self.controller.outpost.managed != ""
|
return self.controller.outpost.managed == MANAGED_OUTPOST
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def noop(self) -> bool:
|
def noop(self) -> bool:
|
||||||
|
|
Reference in New Issue