fix multiple errors
Some checks failed
Validate Kubernetes Manifests / kubeconform (pull_request) Failing after 13s

This commit is contained in:
2025-12-12 22:55:56 +05:30
parent 1160d3069a
commit d0966b8d97

View File

@@ -63,7 +63,7 @@ jobs:
while IFS= read -r file; do while IFS= read -r file; do
[ -z "$file" ] && continue [ -z "$file" ] && continue
echo "=== Validating: $file ===" echo "=== Validating: $file ==="
MANIFESTS=$(yq r $file --tojson | jq '.[]' | jq -c 'select(.kind != null)') 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 // ""') KIND=$(echo $manifest | yq -r '.kind // ""')
@@ -76,7 +76,7 @@ jobs:
-schema-location "$SCHEMA_URL" \ -schema-location "$SCHEMA_URL" \
-cache "$KUBECONFORM_CACHE_DIR" \ -cache "$KUBECONFORM_CACHE_DIR" \
-output json \ -output json \
"<(echo '$manifest')"; then "$manifest"; then
EXIT_CODE=1 EXIT_CODE=1
fi fi
else else
@@ -85,7 +85,7 @@ jobs:
-schema-location default \ -schema-location default \
-cache "$KUBECONFORM_CACHE_DIR" \ -cache "$KUBECONFORM_CACHE_DIR" \
-output json \ -output json \
"<(echo '$manifest')"; then "$manifest"; then
EXIT_CODE=1 EXIT_CODE=1
fi fi
fi fi