File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ POSTGRES_CRD_URL ?= https://raw.githubusercontent.com/zalando/postgres-operator/
27
27
all : manager
28
28
29
29
# Run tests
30
- test : generate fmt vet manifests
30
+ test : generate fmt vet manifests kubebuilder
31
31
go test ./... -coverprofile cover.out -v
32
32
33
33
# todo: Modify Dockerfile to include the version magic
@@ -183,3 +183,12 @@ install-configmap-sidecars:
183
183
# Todo: Add release version when the changes in main branch are released
184
184
crd-cwnp-for-testing :
185
185
curl https://raw.githubusercontent.com/metal-stack/firewall-controller/master/config/crd/bases/metal-stack.io_clusterwidenetworkpolicies.yaml -o external/test/crd-clusterwidenetworkpolicy.yaml
186
+
187
+ kubebuilder :
188
+ { \
189
+ os=$$(go env GOOS ) ; \
190
+ arch=$$(go env GOARCH ) ; \
191
+ curl -L https://go.kubebuilder.io/dl/2.3.1/$$ {os}/$$ {arch} | tar -xz -C /tmp/ ; \
192
+ sudo mv /tmp/kubebuilder_2.3.1_$$ {os}_$$ {arch} /usr/local/kubebuilder ; \
193
+ export PATH=$PATH :/usr/local/kubebuilder/bin ; \
194
+ }
You can’t perform that action at this time.
0 commit comments