Repository navigation
ci(cluster): apply infra/k8s cluster objects from CI, one code path with make (#927) - #931
Merged
Merged
Conversation
Closed
4 tasks
athvin
force-pushed
the
issue/927-cluster-objects-deploy
branch
from
November 8, 2026 22:44
794af2e to
b6cc927
Compare
…sh (#927) — prod's first deploy proved the hand-installed gap
This was referenced Nov 8, 2026
Merged
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #927
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-objectsnow calls it, and a new non-requiredcluster-objects.ymlworkflow calls it onpush: 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, noer-task-*PriorityClass and noamazon-vpc-cniConfigMap, 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'ssystempool (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; nowgrep -qx.workflow-shell-check.sh+scripts-home-check.shgreen; 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:00Zmainis green with this change on it — merge SHA13358a06: 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 head2ce11b33has this commit as ancestorimagescorrectly never ran — the diff touches no image inputs (workflow, one script underscripts/, Makefile, skill refs;scripts/cluster_objects.shis 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 42532909229cluster-objects(this PR's own new one) went RED on its first run (42538478308): CI'supdate-kubeconfignames 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 reportedCloses #927; acceptance evidence on the issue2ce11b33, green). Nothing else deferred--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 byscripts/cluster_objects.shwith the ClusterSecretStore, header comment carrying the er-prod failure that proved itSpecific to this change
np-probe, since deleted): no policy → pod-to-pod SERVED (200); cross-namespace intoapp's default-deny on er-api:8000 → DENIED (curl exit 28, timeout); theallow-alb-to-webhole correctly admitted er-web:3000 (200) — three behaviours, all as designedpaths:-skipped merge leaves this workflow quiet — confirmed the same day: merges ff5b416 (terraform-only) and b5f2cba (charts + deploy.yml) triggered no cluster-objects run; only 13358a0 (the workflow + script themselves) didContext — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files