fix(sentinel): accept empty container heartbeats

Allow Sentinel pushes with an empty containers array so servers with no
running containers still refresh their heartbeat and enqueue an update.
This commit is contained in:
Andras Bacsai committed 2026-05-26 17:31:27 +02:00
1 parent 081bd6ef8c
commit 9f29df4cc3
2 files changed
+10 -2

No files matched your search

@@ -79,7 +79,7 @@ class SentinelController extends Controller
return response()->json(['message' => 'Unauthorized'], 401);
}
$validator = Validator::make($request->all(), [
'containers' => ['required', 'array', 'min:1'],
'containers' => ['present', 'array'],
]);
if ($validator->fails()) {