Skip to content

Commit 9db8bfe

Browse files
authored
Merge pull request #121 from kcp-dev/test-against-kcp-0.29
add kcp 0.29 e2e tests
2 parents 3aa34dc + c3bef32 commit 9db8bfe

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.prow.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,22 @@ presubmits:
125125
requests:
126126
memory: 4Gi
127127
cpu: 2
128+
129+
- name: pull-api-syncagent-test-e2e-kcp-0.29
130+
always_run: true
131+
decorate: true
132+
clone_uri: "https://github.com/kcp-dev/api-syncagent"
133+
labels:
134+
preset-goproxy: "true"
135+
spec:
136+
containers:
137+
- image: ghcr.io/kcp-dev/infra/build:1.24.9-1
138+
command:
139+
- hack/ci/run-e2e-tests.sh
140+
env:
141+
- name: KCP_VERSION
142+
value: "0.29.0"
143+
resources:
144+
requests:
145+
memory: 4Gi
146+
cpu: 2

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,14 @@ build-tests:
7373

7474
.PHONY: clean
7575
clean:
76-
rm -rf $(BUILD_DEST) $(UGET_DIRECTORY)
77-
@echo "Cleaned $(BUILD_DEST) and $(UGET_DIRECTORY)"
76+
rm -rf $(BUILD_DEST)
77+
@echo "Cleaned $(BUILD_DEST)."
78+
79+
.PHONY: clean-tools
80+
clean-tools:
81+
if [ -d $(UGET_DIRECTORY)/k8s ]; then chmod -R +w $(UGET_DIRECTORY)/k8s; fi
82+
rm -rf $(UGET_DIRECTORY)
83+
@echo "Cleaned $(UGET_DIRECTORY)."
7884

7985
.PHONY: lint
8086
lint: install-golangci-lint
@@ -154,6 +160,7 @@ install-yq:
154160
@UNCOMPRESSED=true hack/uget.sh https://github.com/mikefarah/yq/releases/download/v{VERSION}/yq_{GOOS}_{GOARCH} yq $(YQ_VERSION) yq_*
155161

156162
.PHONY: install-kcp
163+
install-kcp: UGET_CHECKSUMS=false # do not checksum because the version regularly gets overwritten in CI jobs
157164
install-kcp:
158165
@hack/uget.sh https://github.com/kcp-dev/kcp/releases/download/v{VERSION}/kcp_{VERSION}_{GOOS}_{GOARCH}.tar.gz kcp $(KCP_VERSION)
159166

@@ -182,7 +189,7 @@ install-reconciler-gen:
182189

183190
.PHONY: update-tools
184191
update-tools: UGET_UPDATE=true
185-
update-tools: clean install-boilerplate install-gimps install-golangci-lint install-kubectl install-yq
192+
update-tools: clean-tools install-boilerplate install-gimps install-golangci-lint install-kubectl install-yq
186193

187194
############################################################################
188195
### docs

0 commit comments

Comments
 (0)