@@ -54,20 +54,6 @@ all: manager
54
54
check : lint e2e-test
55
55
.PHONY : check
56
56
57
- # Build a 4-nodes(1 master and 3 workers) kind cluster with local registry
58
- build-local-cluster :
59
- @touch /tmp/e2e-k8s.config
60
- @echo " the kubeconfig path is /tmp/e2e-k8s.config"
61
- @echo " Creating the kind cluster with local registry"
62
- @bash test/hack/build-kind-cluster-with-local-registry.sh
63
- .PHONY : build-local-cluster
64
-
65
- delete-local-cluster :
66
- @rm /tmp/e2e-k8s.config
67
- @echo " Deleting the kind cluster with local registry"
68
- @bash test/hack/delete-kind-cluster-with-local-registry.sh
69
- .PHONY : delete-local-cluster
70
-
71
57
prepare-e2e-test : e2e
72
58
@echo " Install e2e test dependencies..."
73
59
@sudo bash test/hack/prepare-e2e.sh
@@ -78,118 +64,104 @@ prepare-e2e-test: e2e
78
64
# install the cert-manager and wait for ready
79
65
install-cert-manager :
80
66
@echo " Installing cert-manager..."
81
- @kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml --kubeconfig=/tmp/e2e-k8s.config
82
- @kubectl wait pods -n cert-manager --all --for condition=Ready --timeout=300s --kubeconfig=/tmp/e2e-k8s.config
67
+ @kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml
68
+ @kubectl wait pods -n cert-manager --all --for condition=Ready --timeout=300s
83
69
@echo " Cert-Manager ready."
84
70
85
71
# install the vineyard-operator and wait for ready
86
72
install-vineyard-operator :
87
73
@echo " Installing vineyard-operator..."
88
- @docker tag vineyardcloudnative/vineyard-operator:latest localhost:5001/vineyard-operator:latest
89
- @docker push localhost:5001/vineyard-operator:latest
90
- @export IMG=localhost:5001/vineyard-operator:latest KUBECONFIG=/tmp/e2e-k8s.config && make deploy
91
- @kubectl wait deployment/vineyard-controller-manager --for condition=Available -n vineyard-system --timeout=300s --kubeconfig=/tmp/e2e-k8s.config
74
+ @make deploy
75
+ @kubectl wait deployment/vineyard-controller-manager --for condition=Available -n vineyard-system --timeout=300s
92
76
@echo " Vineyard-Operator Ready"
93
77
94
78
# install the vineyard cluster and wait for ready
95
79
install-vineyard-cluster :
96
80
@echo " Installing vineyard cluster..."
97
- @docker tag vineyardcloudnative/vineyardd:alpine-latest localhost:5001/vineyardd:alpine-latest
98
- @docker push localhost:5001/vineyardd:alpine-latest
99
- @kubectl apply -f test/e2e/vineyardd.yaml --kubeconfig=/tmp/e2e-k8s.config
100
- @kubectl wait vineyardd/vineyardd-sample --for condition=Available -n vineyard-system --timeout=300s --kubeconfig=/tmp/e2e-k8s.config
81
+ @kubectl apply -f test/e2e/vineyardd.yaml
82
+ @kubectl wait vineyardd/vineyardd-sample --for condition=Available -n vineyard-system --timeout=300s
101
83
@echo " Vineyard cluster Ready"
102
84
103
- install-vineyard : build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
85
+ install-vineyard : install-cert-manager install-vineyard-operator install-vineyard-cluster
104
86
sleep 6000
105
- e2e-tests-assembly-local : kustomize prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
87
+ e2e-tests-assembly-local : kustomize prepare-e2e-test install-cert-manager install-vineyard-operator install-vineyard-cluster
106
88
@echo " Running local assembly e2e test..."
107
89
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/assembly/local-assembly-e2e.yaml
108
90
@echo " local assembly e2e test passed."
109
91
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
110
92
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
111
- @make delete-local-cluster
112
93
.PHONY : e2e-tests-assembly-local
113
94
114
- e2e-tests-assembly-distributed : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
95
+ e2e-tests-assembly-distributed : prepare-e2e-test install-cert-manager install-vineyard-operator install-vineyard-cluster
115
96
@echo " Running distributed assembly e2e test..."
116
97
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/assembly/distributed-assembly-e2e.yaml
117
98
@echo " distributed assembly e2e test passed."
118
99
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
119
100
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
120
- @make delete-local-cluster
121
101
.PHONY : e2e-tests-assembly-distributed
122
102
123
- e2e-tests-autogenerated-helm-chart : prepare-e2e-test build-local-cluster install-cert-manager
103
+ e2e-tests-autogenerated-helm-chart : prepare-e2e-test install-cert-manager
124
104
@echo " Running autogenerated helm chart e2e test..."
125
105
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/autogenerated-helm-chart/e2e.yaml
126
106
@echo " autogenerated helm chart e2e test passed."
127
107
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
128
108
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
129
- @make delete-local-cluster
130
109
.PHONY : e2e-tests-autogenerated-helm-chart
131
110
132
- e2e-tests-failover : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
111
+ e2e-tests-failover : prepare-e2e-test install-cert-manager install-vineyard-operator install-vineyard-cluster
133
112
@echo " Running failover e2e test..."
134
113
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/failover/e2e.yaml
135
114
@echo " failover e2e test passed."
136
115
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
137
116
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
138
- @make delete-local-cluster
139
117
.PHONY : e2e-tests-failover
140
118
141
- e2e-tests-repartition-dask : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
119
+ e2e-tests-repartition-dask : prepare-e2e-test install-cert-manager install-vineyard-operator install-vineyard-cluster
142
120
@echo " Running repartition dask e2e test..."
143
121
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/repartition/dask-repartition-e2e.yaml
144
122
@echo " repartition dask e2e test passed."
145
123
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
146
124
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
147
- @make delete-local-cluster
148
125
.PHONY : e2e-tests-repartition-dask
149
126
150
- e2e-tests-scheduler-outside-cluster : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
127
+ e2e-tests-scheduler-outside-cluster : prepare-e2e-test install-cert-manager install-vineyard-operator install-vineyard-cluster
151
128
@echo " Running scheduler outside cluster e2e test..."
152
129
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/scheduling-outside-cluster/e2e.yaml
153
130
@echo " scheduler outside cluster e2e test passed."
154
131
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
155
132
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
156
- @make delete-local-cluster
157
133
.PHONY : e2e-tests-scheduler-outside-cluster
158
134
159
- e2e-tests-serialize : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
135
+ e2e-tests-serialize : prepare-e2e-test install-cert-manager install-vineyard-operator install-vineyard-cluster
160
136
@echo " Running serialize e2e test..."
161
137
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/serialize/e2e.yaml
162
138
@echo " serialize e2e test passed."
163
139
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
164
140
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
165
- @make delete-local-cluster
166
141
.PHONY : e2e-tests-serialize
167
142
168
- e2e-tests-sidecar : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator
143
+ e2e-tests-sidecar : prepare-e2e-test install-cert-manager install-vineyard-operator
169
144
@echo " Running sidecar e2e test..."
170
145
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/sidecar/e2e.yaml
171
146
@echo " sidecar e2e test passed."
172
147
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
173
148
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
174
- @make delete-local-cluster
175
149
.PHONY : e2e-tests-sidecar
176
150
177
- e2e-tests-spill : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator
151
+ e2e-tests-spill : prepare-e2e-test install-cert-manager install-vineyard-operator
178
152
@echo " Running spill e2e test..."
179
153
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/spill/e2e.yaml
180
154
@echo " spill e2e test passed."
181
155
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
182
156
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
183
- @make delete-local-cluster
184
157
.PHONY : e2e-tests-spill
185
158
186
- e2e-tests-workflow : prepare-e2e-test build-local-cluster install-cert-manager install-vineyard-operator install-vineyard-cluster
159
+ e2e-tests-workflow : prepare-e2e-test install-cert-manager install-vineyard-operator install-vineyard-cluster
187
160
@echo " Running workflow e2e test..."
188
161
@cd .. && ${GOBIN} /e2e run --config=k8s/test/e2e/workflow/e2e.yaml
189
162
@echo " workflow e2e test passed."
190
163
@# the next step is recover the default vineyard operator image(vineyardcloudnative/vineyard-operator)
191
164
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
192
- @make delete-local-cluster
193
165
.PHONY : e2e-tests-workflow
194
166
195
167
# Build manager binary
0 commit comments