You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A lint-only src/chant.config.json shadows the project config: chant build src silently drops ownership stamping #1502
findProjectConfig (the #1117 shared upward walk) stops at the FIRST directory holding any chant.config.ts/chant.config.json. Many examples — cc-aws-canonical, the gitlab-* family, k8s-{aks,eks,gke}-microservice, ray-kuberay-gke — follow the convention of a lint-scoping fragment at src/chant.config.json:
So chant build src (the example's own npm run build, and test/aws-cc-e2e.sh step 2) resolves THAT file as the project config. It declares no ownership, no buildParams, no fold/sandbox — and resolveOwnershipMarker silently returns undefined. The built manifests carry no app.kubernetes.io/managed-by=chant / chant.intentius.io/* labels.
Why it matters
The canonical CC estate deploys unstamped. Every owned-scoped read then withholds the k8s half with _unobserved: "filtered" — chant graph --live --overlay shows apiDeployment/apiService/apiPdb as neutral, no runtime Pod nodes surface, and behold renders the k8s half unobserved. lifecycle diff --live still reports the objects (ownership there is a classification, not a scope), which is why aws-cc-e2e never caught it.
Verified: chant build --lexicon k8s from the project root stamps 3 objects; chant build src --lexicon k8s stamps 0. Applying the root-built manifest turns the same overlay read from all-neutral to all-good with 2 runtimeOwner Pod nodes.
The trap class
This is exactly the silent fallback #1117 fixed ("ownership/buildParams quietly fell back to defaults, and nothing warned" — loomster#162), reintroduced one directory deeper by the lint-fragment convention itself.
Proposed fix
loadChantConfigUpward should not accept a lint-only fragment as the project config: when the discovered config's keys are all lint-shape keys (extends, rules, overrides, plugins, $schema), keep walking up (within the project boundary) for the project config. Lint resolution keeps its nearest-wins behavior untouched. A chant.config.json that declares any project-level key still wins where it stands.
Activity
fix: the upward config walk skips lint-only fragments (#1502) (#1503)