fix: correctly iterate over manifests in kubeconform workflow
Some checks failed
Validate Kubernetes Manifests / kubeconform (pull_request) Failing after 13s
Some checks failed
Validate Kubernetes Manifests / kubeconform (pull_request) Failing after 13s
This commit is contained in:
@@ -65,7 +65,7 @@ jobs:
|
|||||||
echo "=== Validating: $file ==="
|
echo "=== Validating: $file ==="
|
||||||
MANIFESTS=$(yq e '.[]' "$file" | 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 // ""')
|
||||||
|
|
||||||
if [[ -n "$KIND" && -n "${SCHEMA_MAP[$KIND]}" ]]; then
|
if [[ -n "$KIND" && -n "${SCHEMA_MAP[$KIND]}" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user