From 5c4abb179809bca1ac52fa929994021939cab292 Mon Sep 17 00:00:00 2001 From: Tasko Olevski Date: Wed, 7 Aug 2024 10:37:21 +0200 Subject: [PATCH] fix: add kopf liveness check --- controller/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/main.py b/controller/main.py index 31a868bb..3020d607 100644 --- a/controller/main.py +++ b/controller/main.py @@ -187,13 +187,13 @@ async def run(ready_flag: threading.Event | None = None, stop_flag: threading.Ev logging.info(f"The changing handlers we start with is {len(registry._changing._handlers)}") logging.info(f"The webhooks handlers we start with is {len(registry._webhooks._handlers)}") - kopf.spawn_tasks await kopf.operator( registry=registry, clusterwide=config.CLUSTER_WIDE, namespaces=config.NAMESPACES, ready_flag=ready_flag, stop_flag=stop_flag, + liveness_endpoint="http://0.0.0.0:8080/healthz", )