feat: add fleet autoscaling baseline

This commit is contained in:
Josh Creek
2026-08-31 21:58:42 +01:00
parent b2ee9ec92d
commit 90126a4be7
5 changed files with 33 additions and 3 deletions
+9
View File
@@ -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")