c1 (Fix): httpbin cluster-local - sparse root checkout never contained generic-templates #1758

Merged
ginjiruu merged 2 commits from c1-httpbin-cluster-local into main 2026-11-20 20:11:23 +00:00
Owner

Found live: #1756 httpbin KS pointed at ./generic-templates/httpbin, but c1 (and test) flux-system GitRepository sparse-checkouts only /clusters/c1/ - the path does not exist in the artifact, KS stuck False, httpbin-routes behind it. c1 apps are cluster-local by design (each folder carries its own HelmRepository; generic-templates references in c1 are comments only).

Fix: namespace, HelmRepository (matheusfm charts), HelmRelease (same values/chart as mini, retries kept for gate hr-retries), the egress allow-list CNP and the existing routes now live in clusters/c1/internal-apps/httpbin/ behind one merged KS (wait, retryInterval; httpbin-routes wrapper retired, its dependsOn folded in). mini keeps using generic-templates/httpbin untouched.

Also adds gate rule ks-path-in-tree: every Kustomization sourced from the cluster flux-system GitRepository must read clusters// only - the tree test builds KS paths against the full working tree and was blind to the sparse artifact (that is how #1756 passed the gate). Negative-tested: tampering the rendered path fails the gate. Gate green: c1 47 objects / 31 KS, no FAIL.

Found live: #1756 httpbin KS pointed at ./generic-templates/httpbin, but c1 (and test) flux-system GitRepository sparse-checkouts only /clusters/c1/ - the path does not exist in the artifact, KS stuck False, httpbin-routes behind it. c1 apps are cluster-local by design (each folder carries its own HelmRepository; generic-templates references in c1 are comments only). Fix: namespace, HelmRepository (matheusfm charts), HelmRelease (same values/chart as mini, retries kept for gate hr-retries), the egress allow-list CNP and the existing routes now live in clusters/c1/internal-apps/httpbin/ behind one merged KS (wait, retryInterval; httpbin-routes wrapper retired, its dependsOn folded in). mini keeps using generic-templates/httpbin untouched. Also adds gate rule ks-path-in-tree: every Kustomization sourced from the cluster flux-system GitRepository must read clusters/<cluster>/ only - the tree test builds KS paths against the full working tree and was blind to the sparse artifact (that is how #1756 passed the gate). Negative-tested: tampering the rendered path fails the gate. Gate green: c1 47 objects / 31 KS, no FAIL.
Sign in to join this conversation.
No description provided.