Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Commit

Permalink
Install kustomize with "go get" if not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
russellb committed May 29, 2019
1 parent 6959c1b commit 3dfa02e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions docs/dev/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions tools/install_kustomize.sh

This file was deleted.

0 comments on commit 3dfa02e

Please sign in to comment.