feat(multiplayer): harden allocator rollout

This commit is contained in:
Josh Creek
2026-09-01 18:50:09 +01:00
parent 2e1c010fa2
commit 398d6ade61
3 changed files with 33 additions and 1 deletions
@@ -38,6 +38,16 @@ class KubernetesPolicyTest(unittest.TestCase):
self.assertIn(required, deployment)
self.assertNotRegex(deployment, r"(?im)^\s*(password|token|private.?key):\s*[^\n]+$")
def test_allocator_rollout_keeps_capacity_and_has_health_probes(self):
deployment = self.read("allocator-deployment.yaml")
for required in (
"type: RollingUpdate", "maxUnavailable: 0", "maxSurge: 1",
"terminationGracePeriodSeconds: 10",
"readinessProbe:", "livenessProbe:",
"path: /metrics", "port: metrics",
):
self.assertIn(required, deployment)
def test_allocator_network_policy_has_only_metrics_data_agones_and_dns_flows(self):
policies = self.read("network-policies.yaml")
allocator = policies.split("name: allocator-allowed-flows", 1)[-1]