Use simple preferred scheduling for Factorio
Test and deploy Factorio / validate (push) Successful in 30s
Test and deploy Factorio / deploy (push) Successful in 17s

This commit is contained in:
feedc0de committed 2026-10-17 16:34:59 +02:00
1 parent 72a1d3e886
commit 1aa4d28a60
15 files changed
+25 -285

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@ assert not spec['automountServiceAccountToken']
for c in spec['containers']:
assert all(p in c for p in ('startupProbe','readinessProbe','livenessProbe','resources')), c['name']
assert ':' in c['image'] and not c['image'].endswith(':latest')
assert spec['affinity']['nodeAffinity']['requiredDuringSchedulingIgnoredDuringExecution']
preference=spec['affinity']['nodeAffinity']['preferredDuringSchedulingIgnoredDuringExecution']
assert preference == [{'weight': 100, 'preference': {'matchExpressions': [{'key': 'kubernetes.io/hostname', 'operator': 'In', 'values': ['arschrock']}]}}]
for service in (d for d in resources if d['kind']=='Service'):
assert all(p['port']!=27015 for p in service['spec']['ports'])
for cm in (d for d in resources if d['kind']=='ConfigMap'):