@@ -108,9 +108,13 @@ E2E_FLAGS ?= ""
108
108
e2e : $(GINKGO ) # EXHELP Run the e2e tests.
109
109
$(GINKGO ) --tags $(GO_BUILD_TAGS ) $(E2E_FLAGS ) -trace -progress $(FOCUS ) test/e2e
110
110
111
+ export REG_PKG_NAME =registry-operator
112
+ export PLAIN_PKG_NAME =plain-operator
113
+ export CATALOG_IMG=localhost/catalog :e2e
111
114
.PHONY : test-op-dev-e2e
112
- test-op-dev-e2e : $(GINKGO ) # HELP Run operator create, upgrade and delete tests.
113
- CONTAINER_RUNTIME=$(CONTAINER_RUNTIME ) $(GINKGO ) --tags $(GO_BUILD_TAGS ) $(E2E_FLAGS ) -trace -progress $(FOCUS ) test/operator-framework-e2e
115
+ test-op-dev-e2e : $(GINKGO ) $(OPERATOR_SDK ) $(KUSTOMIZE ) $(KIND ) # HELP Run operator create, upgrade and delete tests.
116
+ test/operator-framework-e2e/setup.sh $(OPERATOR_SDK ) $(CONTAINER_RUNTIME ) $(KUSTOMIZE ) $(KIND ) $(KIND_CLUSTER_NAME )
117
+ $(GINKGO ) --tags $(GO_BUILD_TAGS ) -trace -progress $(FOCUS ) test/operator-framework-e2e
114
118
115
119
.PHONY : test-unit
116
120
ENVTEST_VERSION = $(shell go list -m k8s.io/client-go | cut -d" " -f2 | sed 's/^v0\.\([[:digit:]]\{1,\}\) \.[[:digit:]]\{1,\}$$/1.\1.x/')
@@ -126,7 +130,7 @@ test-e2e: run kind-load-test-artifacts e2e e2e-coverage undeploy kind-clean #HEL
126
130
127
131
.PHONY : operator-developer-e2e
128
132
operator-developer-e2e : KIND_CLUSTER_NAME=operator-controller-op-dev-e2e # EXHELP Run operator-developer e2e on local kind cluster
129
- operator-developer-e2e : run $( OPM ) $( OPERATOR_SDK ) $( KUSTOMIZE ) deploy-local-registry test-op-dev-e2e cleanup-local-registry kind-clean
133
+ operator-developer-e2e : run test-op-dev-e2e kind-clean
130
134
131
135
.PHONY : e2e-coverage
132
136
e2e-coverage :
@@ -172,23 +176,6 @@ kind-load-test-artifacts: $(KIND) #EXHELP Load the e2e testdata container images
172
176
$(KIND ) load docker-image localhost/testdata/bundles/plain-v0/plain:v0.1.0 --name $(KIND_CLUSTER_NAME )
173
177
$(KIND ) load docker-image localhost/testdata/catalogs/test-catalog:e2e --name $(KIND_CLUSTER_NAME )
174
178
175
- .PHONY : deploy-local-registry
176
- deploy-local-registry : # EXHELP Deploy local registry.
177
- $(CONTAINER_RUNTIME ) run -d -p 5001:5000 --restart=always --name local-registry registry:2
178
-
179
- .PHONY : cleanup-local-registry
180
- cleanup-local-registry : # EXHELP Stop and remove local registry.
181
- $(CONTAINER_RUNTIME ) container stop local-registry
182
- $(CONTAINER_RUNTIME ) container rm -v local-registry
183
-
184
- opm : $(OPM )
185
- $(OPM ) $(OPM_ARGS )
186
-
187
- operator-sdk : $(OPERATOR_SDK )
188
- (cd $( OPERATOR_SDK_PROJECT_PATH) && $( OPERATOR_SDK) $( OPERATOR_SDK_ARGS) )
189
-
190
- kustomize : $(KUSTOMIZE )
191
- (cd $( OPERATOR_SDK_PROJECT_PATH) && $( KUSTOMIZE) $( KUSTOMIZE_ARGS) )
192
179
193
180
# SECTION Build
194
181
0 commit comments