diff --git a/.github/scripts/validate-manifests.sh b/.github/scripts/validate-manifests.sh index a09d8f79..da5f3267 100755 --- a/.github/scripts/validate-manifests.sh +++ b/.github/scripts/validate-manifests.sh @@ -15,16 +15,12 @@ echo "🔍 INFO - Downloading Flux OpenAPI schemas" mkdir -p /tmp/flux-crd-schemas/master-standalone-strict curl -sL https://github.com/fluxcd/flux2/releases/latest/download/crd-schemas.tar.gz | tar zxf - -C /tmp/flux-crd-schemas/master-standalone-strict -echo -e "\n" - echo "🔍 INFO - Validating files" find . -type f -name '*.yaml' -print0 | while IFS= read -r -d $'\0' file; do echo "Validating $file" yq e 'true' "$file" >/dev/null done -echo -e "\n" - echo "🔍 INFO - Validating clusters" find ./k8s/clusters -maxdepth 2 -type f -name '*.yaml' -print0 | while IFS= read -r -d $'\0' file; do kubeconform "${kubeconform_flags[@]}" "${kubeconform_config[@]}" "${file}" @@ -33,8 +29,6 @@ find ./k8s/clusters -maxdepth 2 -type f -name '*.yaml' -print0 | while IFS= read fi done -echo -e "\n" - echo "🔍 INFO - Validating kustomize overlays" find . -type f -name $kustomize_config -print0 | while IFS= read -r -d $'\0' file; do echo "🔍 INFO - Validating kustomization ${file/%$kustomize_config/}"