From adbcae3f772abdd66888d7c9752c406bccc9cba4 Mon Sep 17 00:00:00 2001 From: Chris Shuttlesworth Date: Sat, 3 Oct 2026 20:19:14 -0400 Subject: [PATCH] fix(kustomize-validate): skip kustomize Components A Component cannot be built on its own: it patches and fills in the resources of the kustomization that includes it, so a standalone build fails by design. Its callers are built by the same loop, which is where it is validated. cshuttle/main#332 adds the estate's first one. Co-Authored-By: Claude Opus 5.5 --- scripts/kustomize-validate.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/kustomize-validate.sh b/scripts/kustomize-validate.sh index cebb3bd..5bf3bfd 100755 --- a/scripts/kustomize-validate.sh +++ b/scripts/kustomize-validate.sh @@ -32,6 +32,12 @@ done built=0; skipped=0; failed=0; fails="" for kf in "${kfiles[@]}"; do d="${kf%/kustomization.yaml}" + # A kustomize Component cannot be built on its own: it patches and fills in + # the resources of the kustomization that includes it. It is validated + # through those callers, which this loop builds too. + if grep -q '^kind: Component' "$kf"; then + skipped=$((skipped + 1)); echo " SKIP (component) ${d}"; continue + fi if out="$(kustomize build --enable-helm "$d" 2>/tmp/kv_err)"; then if printf '%s' "$out" | kubeconform -strict -summary -ignore-missing-schemas >/dev/null 2>/tmp/kv_kc; then built=$((built + 1))