Skip to content

Commit 9576c03

Browse files
committed
kubeconfig override
1 parent a4dce6e commit 9576c03

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.prow.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ presubmits:
2222
spec:
2323
containers:
2424
- image: ghcr.io/kcp-dev/infra/build:1.21.8-1
25+
env:
26+
- name: KUBECONFIG
27+
value: /home/prow/go/src/github.com/kcp-dev/controller-runtime/examples/kcp/.test/kcp.kubeconfig
2528
command:
2629
- make
2730
- test-kcp-e2e

examples/kcp/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ kcp-server: $(KCP) $(ARTIFACT_DIR)/kcp ## Run the kcp server.
6767

6868
.PHONY: kcp-bootstrap
6969
kcp-bootstrap: ## Bootstrap the kcp server.
70-
export KUBECONFIG=$(CURDIR)/$(ARTIFACT_DIR)/kcp.kubeconfig
7170
@go run ./config/main.go
7271

7372
.PHONY: kcp-controller
7473
kcp-controller: build kcp-bootstrap ## Run the kcp-controller.
75-
export KUBECONFIG=$(CURDIR)/$(ARTIFACT_DIR)/kcp.kubeconfig
7674
@echo "Starting kcp-controller in the background. To stop run 'make test-cleanup'"
7775
@if [[ ! -s $(ARTIFACT_DIR)/controller.log ]]; then ( ./bin/kcp-controller >$(ARTIFACT_DIR)/controller.log 2>&1 & ); fi
7876

@@ -94,5 +92,4 @@ run-local: build-controller kcp-bootstrap
9492

9593
.PHONY: test # Run tests
9694
test:
97-
export KUBECONFIG=$(CURDIR)/$(ARTIFACT_DIR)/kcp.kubeconfig
9895
go test ./... --workspace=root --kubeconfig=$(CURDIR)/$(ARTIFACT_DIR)/kcp.kubeconfig

0 commit comments

Comments
 (0)