-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
24 lines (20 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
localenv: kind kubectl ko kustomize
./hack/setup-kind-with-registry.sh
kind: # find or download kind if necessary
ifeq (, $(shell which kind))
GOBIN=/usr/local/bin/ go install sigs.k8s.io/[email protected]
endif
kubectl: # find or download kubectl if necessary
ifeq (, $(shell which kubectl))
curl -LO https://dl.k8s.io/release/v1.31.1/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
rm kubectl
endif
ko: # find or download ko if necessary
ifeq (, $(shell which ko))
GOBIN=/usr/local/bin/ go install github.com/google/[email protected]
endif
kustomize: # find or download kustomize if necessary
ifeq (, $(shell which kustomize))
GOBIN=/usr/local/bin/ go install -ldflags="-X 'sigs.k8s.io/kustomize/api/provenance.version=v5.4.3'" sigs.k8s.io/kustomize/kustomize/[email protected]
endif