Skip to content

Commit b39f1f7

Browse files
Morven Caok8s-ci-robot
authored andcommitted
fix kubebuilder issue. (#124)
* fix kubebuilder issue. * update binary path. * add new target kubebuilder.
1 parent c398742 commit b39f1f7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,16 @@ $(GOBIN):
5252

5353
work: $(GOBIN)
5454

55-
depend: work
55+
kubebuilder:
56+
echo "checking if kubebuilder exists or not"
57+
if [ ! -d "/usr/local/kubebuilder" ]; then \
58+
curl -LO https://github.com/kubernetes-sigs/kubebuilder/releases/download/v1.0.8/kubebuilder_1.0.8_linux_amd64.tar.gz \
59+
&& tar xzf kubebuilder_1.0.8_linux_amd64.tar.gz \
60+
&& mv kubebuilder_1.0.8_linux_amd64 kubebuilder && mv kubebuilder /usr/local/ \
61+
&& rm kubebuilder_1.0.8_linux_amd64.tar.gz; \
62+
fi
63+
64+
depend: work kubebuilder
5665
ifndef HAS_DEP
5766
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
5867
endif
@@ -103,7 +112,7 @@ functional:
103112
generate_yaml_test:
104113
ifndef HAS_KUSTOMIZE
105114
# for now, higher version has some problem so we stick to 1.0.11
106-
wget https://github.com/kubernetes-sigs/kustomize/releases/download/v1.0.11/kustomize_1.0.11_linux_amd64
115+
curl -LO https://github.com/kubernetes-sigs/kustomize/releases/download/v1.0.11/kustomize_1.0.11_linux_amd64
107116
mv kustomize_1.0.11_linux_amd64 /usr/local/bin/kustomize
108117
chmod +x /usr/local/bin/kustomize
109118
endif

0 commit comments

Comments
 (0)