Skip to content

Commit

Permalink
fix: add kopf liveness check
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Aug 7, 2024
1 parent 7bcff4b commit 5c4abb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)


Expand Down

0 comments on commit 5c4abb1

Please sign in to comment.