mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
feat: protect game fleet during voluntary disruption
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user