Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/kustomize-validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading