mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
feat: spread game fleet across on-demand zones
This commit is contained in:
@@ -19,6 +19,13 @@ class FleetManifestTest(unittest.TestCase):
|
||||
self.assertIn(label, fleet)
|
||||
for hardening in ("runAsNonRoot: true", "automountServiceAccountToken: false", "readOnlyRootFilesystem: true", "allowPrivilegeEscalation: false"):
|
||||
self.assertIn(hardening, fleet)
|
||||
for scheduling in (
|
||||
"cosmic-clash.io/capacity-type: on-demand",
|
||||
"topologyKey: topology.kubernetes.io/zone",
|
||||
"whenUnsatisfiable: DoNotSchedule",
|
||||
"maxSkew: 1",
|
||||
):
|
||||
self.assertIn(scheduling, fleet)
|
||||
|
||||
def test_autoscaler_preserves_ready_floor_and_owns_fleet(self):
|
||||
autoscaler = self.read("base/fleet-autoscaler.yaml")
|
||||
|
||||
Reference in New Issue
Block a user