Skip to content

Commit 4ef3998

Browse files
committed
WIP
On-behalf-of: @SAP [email protected]
1 parent a19303b commit 4ef3998

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Dockerfile.tester

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM docker.io/golang:1.24
2+
3+
RUN apt update && \
4+
apt install -y git make
5+
6+
RUN git clone https://github.com/kcp-dev/kcp /apps/kcp
7+
WORKDIR /apps/kcp
8+
9+
RUN go build -v ./...
10+
11+
ENV NO_GORUN=1
12+
13+
CMD [ "bash", "-c", "go test -parallel 1 ./test/e2e/... -args --kcp-kubeconfig $KUBECONFIG" ]

hack/ci/run-e2e-tests.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ export IMAGE_TAG=local
2222
echo "Building container images…"
2323
ARCHITECTURES=arm64 DRY_RUN=yes ./hack/ci/build-image.sh
2424

25+
E2E_TEST_IMAGE=local/kcptester:v1
26+
buildah build-using-dockerfile \
27+
--file Dockerfile.tester \
28+
--tag "$E2E_TEST_IMAGE" \
29+
--format=docker \
30+
.
31+
2532
# start docker so we can run kind
2633
start-docker.sh
2734

@@ -44,6 +51,14 @@ echo "Loading operator image into kind…"
4451
buildah manifest push --all "$image" "oci-archive:$archive:$image"
4552
kind load image-archive "$archive" --name "$KIND_CLUSTER_NAME"
4653

54+
# load the tester image
55+
echo "Loading tester image into kind…"
56+
archive=tester.tar
57+
buildah push "$E2E_TEST_IMAGE" "oci-archive:$archive:$E2E_TEST_IMAGE"
58+
kind load image-archive "$archive" --name "$KIND_CLUSTER_NAME"
59+
60+
exit 0
61+
4762
# deploy the operator
4863
echo "Deploying operator…"
4964
kubectl kustomize hack/ci/testdata | kubectl apply --filename -

0 commit comments

Comments
 (0)