outposts/controllers/kubernetes: don't create service monitor for embedded outpost

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-10 15:59:39 +02:00
parent 4448145aa9
commit e229eda96e
1 changed files with 1 additions and 1 deletions

View File

@ -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"""