@@ -62,6 +62,10 @@ ifeq ($(origin KIND_CLUSTER_NAME), undefined)
6262KIND_CLUSTER_NAME := operator-controller
6363endif
6464
65+ ifeq ($(origin KIND_CONFIG ) , undefined)
66+ KIND_CONFIG := ./kind-config.yaml
67+ endif
68+
6569
6670ifneq (, $(shell command -v docker 2>/dev/null) )
6771CONTAINER_RUNTIME := docker
@@ -263,7 +267,7 @@ image-registry: export GOARCH=amd64
263267image-registry : # # Build the testdata catalog used for e2e tests and push it to the image registry
264268 go build $(GO_BUILD_FLAGS ) $(GO_BUILD_EXTRA_FLAGS ) -tags ' $(GO_BUILD_TAGS)' -ldflags ' $(GO_BUILD_LDFLAGS)' -gcflags ' $(GO_BUILD_GCFLAGS)' -asmflags ' $(GO_BUILD_ASMFLAGS)' -o ./testdata/push/bin/push ./testdata/push/push.go
265269 $(CONTAINER_RUNTIME ) build -f ./testdata/Dockerfile -t $(E2E_REGISTRY_IMAGE ) ./testdata
266- $(CONTAINER_RUNTIME ) save $( E2E_REGISTRY_IMAGE ) | $( KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
270+ $(KIND ) load docker-image $( E2E_REGISTRY_IMAGE ) --name $(KIND_CLUSTER_NAME )
267271 ./testdata/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE ) $(E2E_REGISTRY_NAME ) $(E2E_REGISTRY_IMAGE )
268272
269273# When running the e2e suite, you can set the ARTIFACT_PATH variable to the absolute path
@@ -282,6 +286,7 @@ test-e2e: run-internal image-registry prometheus e2e e2e-coverage kind-clean #HE
282286.PHONY : test-experimental-e2e
283287test-experimental-e2e : SOURCE_MANIFEST := $(EXPERIMENTAL_E2E_MANIFEST )
284288test-experimental-e2e : KIND_CLUSTER_NAME := operator-controller-e2e
289+ test-experimental-e2e : KIND_CONFIG := ./kind-config-experimental.yaml
285290test-experimental-e2e : GO_BUILD_EXTRA_FLAGS := -cover
286291test-experimental-e2e : COVERAGE_NAME := experimental-e2e
287292test-experimental-e2e : export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST )
@@ -382,8 +387,8 @@ stop-profiling: build-test-profiler #EXHELP Stop profiling and generate analysis
382387
383388.PHONY : kind-load
384389kind-load : $(KIND ) # EXHELP Loads the currently constructed images into the KIND cluster.
385- $(CONTAINER_RUNTIME ) save $( OPCON_IMG ) | $( KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
386- $(CONTAINER_RUNTIME ) save $( CATD_IMG ) | $( KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
390+ $(KIND ) load docker-image $( OPCON_IMG ) --name $(KIND_CLUSTER_NAME )
391+ $(KIND ) load docker-image $( CATD_IMG ) --name $(KIND_CLUSTER_NAME )
387392
388393.PHONY : kind-deploy
389394kind-deploy : export DEFAULT_CATALOG := $(RELEASE_CATALOGS )
@@ -408,8 +413,9 @@ kind-deploy-experimental: manifests
408413.PHONY : kind-cluster
409414kind-cluster : $(KIND ) kind-verify-versions # EXHELP Standup a kind cluster.
410415 -$(KIND ) delete cluster --name $(KIND_CLUSTER_NAME )
411- $(KIND ) create cluster --name $(KIND_CLUSTER_NAME ) --config ./kind-config.yaml
416+ $(KIND ) create cluster --name $(KIND_CLUSTER_NAME ) --config $( KIND_CONFIG )
412417 $(KIND ) export kubeconfig --name $(KIND_CLUSTER_NAME )
418+ kubectl wait --for=condition=Ready nodes --all --timeout=2m
413419
414420.PHONY : kind-clean
415421kind-clean : $(KIND ) # EXHELP Delete the kind cluster.
0 commit comments