Skip to content

Commit 0dfc044

Browse files
committed
add kubeconfig
1 parent 245093c commit 0dfc044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/kcp/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ kcp-bootstrap: ## Bootstrap the kcp server.
7171

7272
.PHONY: kcp-controller
7373
kcp-controller: build kcp-bootstrap ## Run the kcp-controller.
74+
export KUBECONFIG=$(CURDIR)/$(ARTIFACT_DIR)/kcp.kubeconfig
7475
@echo "Starting kcp-controller in the background. To stop run 'make test-cleanup'"
7576
@if [[ ! -s $(ARTIFACT_DIR)/controller.log ]]; then ( ./bin/kcp-controller >$(ARTIFACT_DIR)/controller.log 2>&1 & ); fi
7677

@@ -92,4 +93,5 @@ run-local: build-controller kcp-bootstrap
9293

9394
.PHONY: test # Run tests
9495
test:
96+
export KUBECONFIG=$(CURDIR)/$(ARTIFACT_DIR)/kcp.kubeconfig
9597
go test ./... --workspace=root --kubeconfig=$(CURDIR)/$(ARTIFACT_DIR)/kcp.kubeconfig

0 commit comments

Comments
 (0)