From e229eda96ebe18b0b3f9d92ec0e163b5053f3fc5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 10 Sep 2021 15:59:39 +0200 Subject: [PATCH] outposts/controllers/kubernetes: don't create service monitor for embedded outpost Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/k8s/service_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/outposts/controllers/k8s/service_monitor.py b/authentik/outposts/controllers/k8s/service_monitor.py index 2fadbc6dd..41cd213d6 100644 --- a/authentik/outposts/controllers/k8s/service_monitor.py +++ b/authentik/outposts/controllers/k8s/service_monitor.py @@ -73,7 +73,7 @@ class PrometheusServiceMonitorReconciler(KubernetesObjectReconciler[PrometheusSe @property def noop(self) -> bool: - return not self._crd_exists() + return (not self._crd_exists()) or (self.is_embedded) def _crd_exists(self) -> bool: """Check if the Prometheus ServiceMonitor exists"""