You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(e2e) Use custom built test catalog for e2e testing
This PR
* Stands up a local image registry in the cluster
* Builds bundles and catalog images and uploads them to the image registry
* Uses the custom images in the e2e test suite
* Also introduces a `pullSecret` field for the Operator API's Spec struct,
to allow installation of operators on cluster whose bundles require
imagePullSecret to be provisioned. This is required because the bundle
images built and uploaded to the local registry above requires a pull
secret for the local registry.
closes#215
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
19
26
ifeq (,$(shell go env GOBIN))
20
27
GOBIN=$(shell go env GOPATH)/bin
@@ -82,7 +89,7 @@ test-unit: envtest ## Run the unit tests
82
89
eval$$($(ENVTEST) use -p env $(ENVTEST_VERSION))&& go test -tags $(GO_BUILD_TAGS) -count=1 -short $(UNIT_TEST_DIRS) -coverprofile cover.out
83
90
84
91
e2e: KIND_CLUSTER_NAME=operator-controller-e2e
85
-
e2e: run test-e2e kind-cluster-cleanup ## Run e2e test suite on local kind cluster
92
+
e2e: run image-registry kind-load-test-artifacts registry-load-test-artifacts test-e2e kind-cluster-cleanup ## Run e2e test suite on local kind cluster
86
93
87
94
kind-load: kind ## Loads the currently constructed image onto the cluster
registry-load-test-artifacts: ## Load e2e testdata container images created in kind-load-test-artifacts into registry
114
+
$(CONTAINER_RUNTIME) tag localhost/testdata/bundles/registry-v1/prometheus-operator.v0.47.0 $(DNS_NAME):5000/bundles/registry-v1/prometheus-operator.v0.47.0
115
+
$(CONTAINER_RUNTIME) tag localhost/testdata/catalogs/test-catalog $(DNS_NAME):5000/catalogs/test-catalog
// ImagePullSecretName contains the name of the image pull secret that will be used to provision the operator bundle, in the rukpak-system namespace.
49
+
ImagePullSecretNamestring`json:"pullSecret,omitempty"`// TODO: Find a better place for this field. This is only valid if the package bundles are OCI images.
0 commit comments