fix(deploy) : roll out web replicas without surge capacity
CI / Verify (push) Successful in 2m4s
CI / Build immutable images and deploy (push) Successful in 3m51s

This commit is contained in:
2026-10-09 19:20:23 +07:00 Unverified
parent b49b758c99
commit be2648cab3
3 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -11,8 +11,8 @@ describe("production deployment contract", () => {
const deployment = await repositoryFile("k8s/base/deployment.yaml");
expect(deployment).toContain("replicas: 2");
expect(deployment).toContain("maxSurge: 1");
expect(deployment).toContain("maxUnavailable: 0");
expect(deployment).toContain("maxSurge: 0");
expect(deployment).toContain("maxUnavailable: 1");
expect(deployment.match(/path: \/api\/healthz\n/gu)).toHaveLength(3);
expect(deployment).toContain("kubernetes.io/arch: arm64");
expect(deployment).toMatch(
@@ -144,6 +144,10 @@ describe("production deployment contract", () => {
);
expect(workflow).toContain("migrate-$REVISION");
expect(workflow).toContain("deployment/buzz-sheet-discord-worker");
expect(workflow).toContain('"maxSurge":0,"maxUnavailable":1');
const patchRolloutStrategy = workflow.indexOf("patch deployment buzz-sheet");
expect(patchRolloutStrategy).toBeGreaterThan(-1);
expect(patchRolloutStrategy).toBeLessThan(workflow.indexOf("set image"));
const deleteMigrationJob = workflow.indexOf(
'delete job buzz-sheet-migrate --ignore-not-found',
);