diff --git a/Makefile b/Makefile index 6d4de4b..03bac32 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,7 @@ test: manifests generate fmt vet setup-envtest ## Run tests. # CertManager is installed by default; skip with: # - CERT_MANAGER_INSTALL_SKIP=true KIND_CLUSTER ?= atom-operator-test-e2e +KUBECONFIG_PATH ?= ./kind-config.yaml # Added for local development to prevent errors with finding the kind cluster .PHONY: setup-test-e2e setup-test-e2e: ## Set up a Kind cluster for e2e tests if it does not exist @@ -78,17 +79,18 @@ setup-test-e2e: ## Set up a Kind cluster for e2e tests if it does not exist echo "Kind cluster '$(KIND_CLUSTER)' already exists. Skipping creation." ;; \ *) \ echo "Creating Kind cluster '$(KIND_CLUSTER)'..."; \ - $(KIND) create cluster --name $(KIND_CLUSTER) ;; \ + $(KIND) create cluster --name $(KIND_CLUSTER) --kubeconfig $(KUBECONFIG_PATH) ;; \ esac .PHONY: test-e2e test-e2e: setup-test-e2e manifests generate fmt vet ## Run the e2e tests. Expected an isolated environment using Kind. - KIND=$(KIND) KIND_CLUSTER=$(KIND_CLUSTER) go test -tags=e2e ./test/e2e/ -v -ginkgo.v + KIND=$(KIND) KIND_CLUSTER=$(KIND_CLUSTER) KUBECONFIG=$(KUBECONFIG_PATH) go test -tags=e2e ./test/e2e/ -v -ginkgo.v $(MAKE) cleanup-test-e2e .PHONY: cleanup-test-e2e cleanup-test-e2e: ## Tear down the Kind cluster used for e2e tests - @$(KIND) delete cluster --name $(KIND_CLUSTER) + @$(KIND) delete cluster --name $(KIND_CLUSTER) --kubeconfig $(KUBECONFIG_PATH) + rm $(KUBECONFIG_PATH) .PHONY: lint lint: golangci-lint ## Run golangci-lint linter diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index d1d00d1..59386da 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization images: - name: controller - newName: local-registry:5000/atom-operator - newTag: v3.0.0 + newName: example.com/atom-operator + newTag: v0.0.1