Add daemon-selected container monitor delegation

This commit is contained in:
Lyncoln
2026-09-18 14:09:46 -04:00
parent 3937de82dc
commit cbb865729a
6 changed files with 411 additions and 0 deletions
+8
View File
@@ -150,6 +150,13 @@ with conn:
elif mode == "bad_rc":
response["result"]["ha"]["ocf_rc"] = 42
elif mode == "delegate":
response["result"] = {
"delegated": True,
"backend": "container",
"container_runtime": "podman",
}
conn.sendall(
json.dumps(response).encode("utf-8") + b"\n"
)
@@ -248,6 +255,7 @@ PY_REFUSED
echo "===== PROXY PROTOCOL CLASSIFICATION ====="
run_case valid valid 0
run_case delegation delegate 0
run_case missing_protocol missing_protocol 11
run_case wrong_protocol wrong_protocol 11
run_case wrong_resource wrong_resource 11