Skip to content

Commit

Permalink
Merge pull request #262 from microsoft/aparekh/release-test
Browse files Browse the repository at this point in the history
update kustomize
  • Loading branch information
apurvparekh30 authored Mar 13, 2024
2 parents e846931 + 68a42a6 commit ed69145
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hack/ensure-kustomize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o nounset
set -o pipefail

GOPATH_BIN="$(go env GOPATH)/bin/"
MINIMUM_KUSTOMIZE_VERSION=3.8.2
MINIMUM_KUSTOMIZE_VERSION=v5.0.1

# Ensure the kustomize tool exists and is a viable version, or installs it
verify_kustomize_version() {
Expand All @@ -32,8 +32,11 @@ verify_kustomize_version() {
if ! [ -d "${GOPATH_BIN}" ]; then
mkdir -p "${GOPATH_BIN}"
fi
curl -sLov "${GOPATH_BIN}/kustomize" https://github.com/kubernetes-sigs/kustomize/releases/download/v${MINIMUM_KUSTOMIZE_VERSION}/kustomize_${MINIMUM_KUSTOMIZE_VERSION}_linux_amd64 2>&1
curl -sLo "${GOPATH_BIN}/kustomize.tar.gz" https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/${MINIMUM_KUSTOMIZE_VERSION}/kustomize_${MINIMUM_KUSTOMIZE_VERSION}_linux_amd64.tar.gz -v
tar -xvf "${GOPATH_BIN}/kustomize.tar.gz" -C "${GOPATH_BIN}/"
chmod +x "${GOPATH_BIN}/kustomize"
cp -v "${GOPATH_BIN}/kustomize" /usr/local/bin/kustomize
which kustomize
else
echo "Missing required binary in path: kustomize"
return 2
Expand All @@ -53,4 +56,3 @@ EOF
}

verify_kustomize_version

0 comments on commit ed69145

Please sign in to comment.