Skip to content

ci(cluster): apply infra/k8s cluster objects from CI, one code path with make (#927) - #931

Merged
athvin merged 3 commits into
mainfrom
issue/927-cluster-objects-deploy
Nov 9, 2026
Merged

athvin merged 3 commits into
mainfrom
issue/927-cluster-objects-deploy

Conversation

@athvin

@athvin athvin commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Closes #927

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

scripts/cluster_objects.sh — the four apply surfaces (nodepools non-recursive, nodepools/<env>/, priorityclasses, the CNI ConfigMap) plus post-apply presence verification, a convergence diff, and report-only deletion drift. make cluster-objects now calls it, and a new non-required cluster-objects.yml workflow calls it on push: main (paths-filtered) with a dev+prod matrix under the per-env deploy roles.

Why

deploy.yml already covered infra/k8s/** in its trigger paths and never applied these — er-prod measured nine days with no app/runner NodePool, no er-task-* PriorityClass and no amazon-vpc-cni ConfigMap, so its NetworkPolicies enforced nothing and nothing reported it. The ticket's three open questions are decided here: separate workflow (cluster objects do not depend on an image); credentials are the existing per-env deploy roles (#930 for prod); apply + report, never prune (deleting capacity from CI is the dangerous direction; the throwaway measure/ pool would false-positive).

Proof

Ran the script live against both clusters from this branch: er-dev and er-prod both converge (all objects unchanged/configured), presence verification passes, convergence diffs empty, deletion-drift report correctly empty apart from Auto Mode's system pool (allowlisted in the script). The smoke test caught and fixed a real bug — a glob over a newline-separated list reported every object as drift; now grep -qx. workflow-shell-check.sh + scripts-home-check.sh green; regen picked up the new workflow in all three generated references.

Risk & rollback

Risk: the prod leg needs #930's role — it fails loudly at assume-role until then, by design. The apply is of already-applied manifests (no-op). Rollback: git revert; the Makefile target's behaviour is preserved through the same script.

Post-merge ledger

Closed by: agent · codex session on Athvins-MacBook-Pro · 2026-11-08T23:30:00Z

  • main is green with this change on it — merge SHA 13358a06: rust completed/success (run 42538478290), frontend + devcontainer + infra success; the follow-up fix fix(ci): alias the kubeconfig context in cluster-objects.yml #940's head 2ce11b33 has this commit as ancestor
  • images correctly never ran — the diff touches no image inputs (workflow, one script under scripts/, Makefile, skill refs; scripts/cluster_objects.sh is deliberately not in images' paths — it rides its own workflow)
  • deploy — n/a; no images run means no deploy trigger. The deploy surface itself went green the same day on run 42532909229
  • the push-only surface — cluster-objects (this PR's own new one) went RED on its first run (42538478308): CI's update-kubeconfig names the context by cluster ARN, so the script's --context er-<env> was "cluster unreachable" on both legs. Attributed, fixed forward in fix(ci): alias the kubeconfig context in cluster-objects.yml #940 (--alias), re-run green on both legs (42539710868): prod applied, presence verified, zero drift reported
  • the board card — The deploy never applies infra/k8s cluster objects, so a new cluster is born without them #927 closed by this merge's Closes #927; acceptance evidence on the issue
  • follow-ups — the alias fix was fix(ci): alias the kubeconfig context in cluster-objects.yml #940 (merged 2ce11b33, green). Nothing else deferred
  • what was learned — two, both written at the point they bite: (1) CI kubeconfig contexts are ARN-named without --alias (comment on the step in cluster-objects.yml); (2) ESO was hand-installed and uncaptured since task 1.6 — now pinned (2.12.0) and installed by scripts/cluster_objects.sh with the ClusterSecretStore, header comment carrying the er-prod failure that proved it

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

@athvin
athvin force-pushed the issue/927-cluster-objects-deploy branch from 794af2e to b6cc927 Compare November 8, 2026 22:44
…sh (#927) — prod's first deploy proved the hand-installed gap
@athvin
athvin marked this pull request as ready for review November 9, 2026 00:07
@athvin
athvin merged commit 13358a0 into main Nov 9, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The deploy never applies infra/k8s cluster objects, so a new cluster is born without them

2 participants