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
* Run kind e2e test
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
On-behalf-of: @SAP karol.szwaj@sap.com
* clean up makefile
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
On-behalf-of: @SAP karol.szwaj@sap.com
Copy file name to clipboardExpand all lines: Makefile
+32-26Lines changed: 32 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
GO ?= go
2
2
KUBECTL ?= kubectl
3
+
KIND ?= kind
4
+
HELM ?= helm
3
5
KUSTOMIZE ?= $(GO) tool kustomize
4
6
CONTROLLER_GEN ?= $(GO) tool controller-gen
5
7
API_GEN ?= $(GO) tool apigen
@@ -87,7 +89,7 @@ TEST_NAME ?=
87
89
88
90
.PHONY: test-e2e
89
91
test-e2e: manifests generate fmt vet ## Run e2e tests. Optionally specify TEST_NAME=<test_name> to run a specific test.
90
-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./test/... -v -timeout 30m $(if$(TEST_NAME),-run "^$(TEST_NAME)$$")
92
+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)"SETUP_CLUSTER=true IMG=$(IMG)go test ./test/... -v -timeout 30m $(if$(TEST_NAME),-run "^$(TEST_NAME)$$")
91
93
92
94
.PHONY: lint
93
95
lint: ## Run golangci-lint linter
@@ -126,7 +128,7 @@ docker-build: manifests generate fmt vet ## Build docker image with the manager.
kind-test-sample: ## Deploy a sample httpbin to test the operator
228
+
@echo "Creating sample httpbin..."
229
+
$(KUBECTL) apply -f examples/httpbin.yaml
230
+
231
+
.PHONY: kind-test-e2e
232
+
kind-test-e2e: kind-test
233
+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" IMG=$(IMG) go test ./test/... -v -timeout 30m $(if$(TEST_NAME),-run "^$(TEST_NAME)$$")
0 commit comments