-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
93 lines (72 loc) · 2.3 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.PHONY: bazel-build
bazel-build: bazel-generate
./hack/dockerized "./hack/bazel/build.sh"
.PHONY: bazel-generate
bazel-generate:
SYNC_VENDOR=true ./hack/dockerized "./hack/bazel/generate.sh"
.PHONY: bazel-push-images
bazel-push-images:
./hack/dockerized "CONTAINER_PREFIX=${CONTAINER_PREFIX} CONTAINER_TAG=${CONTAINER_TAG} ./hack/bazel/push-images.sh"
.PHONY: bazel-tests
bazel-tests:
hack/dockerized "bazel test \
--platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 \
--workspace_status_command=./hack/print-workspace-status.sh \
--cache_test_results=no \
--test_output=errors -- //pkg/... //tools/utils/..."
.PHONY: cluster-build
cluster-build: generate
KUBEVIRT_PROVIDER=okd-4.1 ./hack/cluster/build.sh
.PHONY: cluster-clean
cluster-clean:
./hack/cluster/clean.sh
.PHONY: cluster-deploy
cluster-deploy: cluster-clean
./hack/cluster/deploy.sh
.PHONY: cluster-down
cluster-down:
KUBEVIRT_PROVIDER=okd-4.1 ./cluster-up/down.sh
.PHONY: cluster-sync
cluster-sync: cluster-build cluster-deploy
.PHONY: cluster-up
cluster-up:
KUBEVIRT_PROVIDER=okd-4.1 ./cluster-up/up.sh
.PHONY: deps-update
deps-update:
SYNC_VENDOR=true ./hack/dockerized "./hack/deps-update.sh"
.PHONY: distclean
distclean:
hack/dockerized "rm -rf vendor/ && rm -f go.sum && GO111MODULE=on go clean -modcache"
rm -rf vendor/
.PHONY: e2e-tests-build
e2e-tests-build:
./hack/dockerized "./hack/testing/build.sh"
.PHONY: e2e-tests-run
e2e-tests-run: e2e-tests-build
./hack/testing/run.sh
.PHONY: fmt
fmt:
./hack/dockerized "./hack/bazel/fmt.sh"
.PHONY: generate
generate: generate-clean generate-crds generate-client generate-templates generate-manifests bazel-generate
.PHONY: generate-clean
generate-clean:
./hack/dockerized "./hack/generate/clean.sh"
.PHONY: generate-crds
generate-crds:
./hack/dockerized "./hack/generate/crds.sh"
.PHONY: generate-client
generate-client:
./hack/dockerized "./hack/generate/client.sh"
.PHONY: generate-manifests
generate-manifests: generate-templates
./hack/dockerized "CONTAINER_TAG=${CONTAINER_TAG} \
IMAGE_PULL_POLICY=${IMAGE_PULL_POLICY} \
MR_IMAGE=${MR_IMAGE} \
./hack/generate/manifests.sh"
.PHONY: generate-templates
generate-templates:
./hack/dockerized "./hack/generate/templates.sh"
.PHONY: kubevirtci-download
kubevirtci-download:
./hack/dockerized "./hack/kubevirtci/download.sh"