diff --git a/Makefile b/Makefile index 0dfa7069b..ae9c2a218 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ test: testprereqs generate fmt vet unit .PHONY: testprereqs testprereqs: @if [ ! -d /usr/local/kubebuilder ] ; then echo "kubebuilder not found. See docs/dev/setup.md" && exit 1 ; fi - @if ! which kustomize >/dev/null 2>&1 ; then echo "kustomize not found. See docs/dev/setup.md" && exit 1 ; fi + @if ! which kustomize >/dev/null 2>&1 ; then echo "Running 'go get sigs.k8s.io/kustomize'" && go get sigs.k8s.io/kustomize ; fi unit: manifests go test ./pkg/... ./cmd/... -coverprofile cover.out diff --git a/docs/dev/setup.md b/docs/dev/setup.md index afd125a5e..1b5442c5c 100644 --- a/docs/dev/setup.md +++ b/docs/dev/setup.md @@ -6,9 +6,7 @@ during development. ## Install kustomize ```bash -eval $(go env) -export GOPATH -./tools/install_kustomize.sh +go get sigs.k8s.io/kustomize ``` ## Install kubebuilder diff --git a/tools/install_kustomize.sh b/tools/install_kustomize.sh deleted file mode 100755 index bbd0ef75b..000000000 --- a/tools/install_kustomize.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -x -mkdir -p $GOPATH/bin -curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/v1.0.11/kustomize_1.0.11_linux_amd64 -o $GOPATH/bin/kustomize -chmod +x $GOPATH/bin/kustomize