Skip to content

Commit

Permalink
Fix validate script to capture pipestatus
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael P. Ribeiro <raphaelpr01@gmail.com>
  • Loading branch information
raphapr committed Jan 7, 2021
1 parent af015e9 commit 1811708
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 1811708

Please sign in to comment.