Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
devantler committed Aug 21, 2023
1 parent 501da88 commit db69b1d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/scripts/validate-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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/}"
Expand Down

0 comments on commit db69b1d

Please sign in to comment.