Repository navigation
Conversation
Signed-off-by: Baylem <zelathis@gmail.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
CI Report - 5205dedrun 46230654454 - attempt 1 0 failed - 29 passed - 4 skipped - 47m43s elapsed Test selection: partial - per-suite table Coverageno coverage/* commit statuses found on 5205ded Changed
Slowest jobs
e2e buckets run
|
Signed-off-by: Baylem <zelathis@gmail.com>
Fixes #967.
With a fleet limit of one, a Ready Pod could let a second world start loading while the first was still starting. At the other extreme, an unbound game Pod could occupy the only slot indefinitely. Both paths are present on
masteratf7303559. PR #1162 addresses the Service handoff to the sentinel as a game goes to sleep. This change targets cold-start admission and the handoff back to the waking game.A limited wake now keeps its reservation until the current game container passes its configured readiness probe or answers a declared A2S or RCON player query. The agent includes the source Pod UID and observation time so a previous process’s response cannot qualify a restarted game. Service-backed wakes keep routing through the sentinel while the world loads.
When another game is waiting, the operator can withdraw a start that the scheduler reports as unschedulable. It records the reason, gates replacement Pods, and keeps the reservation until the StatefulSet has scaled to zero and its Pod has disappeared. If the scheduler binds the original Pod first, that game keeps its slot and continues starting. A parked wake must reserve capacity again to retry.
Upgrade impact. The default limit of zero stays unlimited. For a positive limit, configure a game readiness probe or a supported player query for each sleeper. A sleeper missing both stays queued with the reason in
status.idle.reason. Update pinned agent images for games that rely on native queries.Verification. The agent, operator, and changed Go test packages compiled locally for Linux amd64. Both Python files parsed, and the generated chart CRD copies matched. The Kind drill now measures Pod readiness separately from the first successful client join and exercises a delayed world, a same-Pod game restart, worker loss and recovery, and operator restarts with real Minecraft and Teeworlds clients. Runtime suites run in CI.