mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-13 04:52:03 +00:00
feat: add fleet autoscaling baseline
This commit is contained in:
@@ -20,6 +20,15 @@ class FleetManifestTest(unittest.TestCase):
|
||||
for hardening in ("runAsNonRoot: true", "automountServiceAccountToken: false", "readOnlyRootFilesystem: true", "allowPrivilegeEscalation: false"):
|
||||
self.assertIn(hardening, fleet)
|
||||
|
||||
def test_autoscaler_preserves_ready_floor_and_owns_fleet(self):
|
||||
autoscaler = self.read("base/fleet-autoscaler.yaml")
|
||||
for field in (
|
||||
"kind: FleetAutoscaler", "namespace: cosmic-clash",
|
||||
"fleetName: cosmic-clash-game", "type: Buffer",
|
||||
"minReady: 2", "maxReady: 6", "bufferSize: 2",
|
||||
):
|
||||
self.assertIn(field, autoscaler)
|
||||
|
||||
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