feat: protect game fleet during voluntary disruption

This commit is contained in:
Josh Creek
2026-08-31 22:01:18 +01:00
parent 72d4a604c2
commit 52a96de8d6
5 changed files with 28 additions and 3 deletions
+9
View File
@@ -36,6 +36,15 @@ class FleetManifestTest(unittest.TestCase):
):
self.assertIn(field, autoscaler)
def test_pdb_protects_the_ready_floor_and_matches_game_servers(self):
pdb = self.read("base/game-server-pdb.yaml")
for field in (
"kind: PodDisruptionBudget", "apiVersion: policy/v1",
"namespace: cosmic-clash", "minAvailable: 2",
"app.kubernetes.io/name: game-server",
):
self.assertIn(field, pdb)
def test_eu_and_na_overlays_are_distinct_and_namespaced(self):
eu = self.read("overlays/eu/region.yaml")
na = self.read("overlays/na/region.yaml")