Skip to content

Commit

Permalink
Merge pull request #8 from raphapr/fix-validate-script
Browse files Browse the repository at this point in the history
Fix validate script to capture pipestatus
  • Loading branch information
stefanprodan authored Jan 7, 2021
2 parents d9d396e + b07868b commit 4137baf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ find . -type f -name $k -print0 | while IFS= read -r -d $'\0' file;
do
echo "INFO - Validating kustomization ${file/%$k}"
kustomize build "${file/%$k}" | kubeval --ignore-missing-schemas
if [[ ${PIPESTATUS[0]} != 0 ]]; then
exit 1
fi
done

0 comments on commit 4137baf

Please sign in to comment.