Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Update check_build_deps.sh
Browse files Browse the repository at this point in the history
Updated the kustomize version check according to a recent version string update in latest kustomize release 3.2.1.
  • Loading branch information
hongyegong committed Oct 7, 2019
1 parent 22666be commit e5a5419
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/check_build_deps.sh
Expand Up @@ -28,6 +28,11 @@ kustomize_url="https://github.com/kubernetes-sigs/kustomize/blob/master/docs/INS
kustomize_major_version=$(kustomize version \
| grep -P -o 'KustomizeVersion:\d+\.' \
| grep -P -o '\d+')
if [[ -z "${kustomize_major_version}" ]]; then
kustomize_major_version=$(kustomize version \
| grep -P -o 'kustomize/v\d+\.' \
| grep -P -o '\d+')
fi
if [[ "${kustomize_major_version}" -lt 3 ]]; then
echo "Error: Kustomize v3+ is required for the build."
echo "Please install it by following the instructions at ${kustomize_url}"
Expand Down

0 comments on commit e5a5419

Please sign in to comment.