kubeconform workflow will handle multiple manifests in a single file #204

Closed
aggarwalakshun wants to merge 5 commits from better-handle-multiple-manifests-in-same-file into main
Showing only changes of commit eee698532e - Show all commits

View File

@@ -65,7 +65,7 @@ jobs:
echo "=== Validating: $file ==="
MANIFESTS=$(yq e '.[]' "$file" | jq -c 'select(.kind != null)')
for manifest in ${MANIFESTS}; do
for manifest in "${MANIFESTS[@]}"; do
KIND=$(echo $manifest | yq -r '.kind // ""')
if [[ -n "$KIND" && -n "${SCHEMA_MAP[$KIND]}" ]]; then