Skip to content

Commit b1b79af

Browse files
committed
E2E: Skip pulling unused images
Also try to ensure that the /var/www/html folder exists before moving the e2e image archive there. Signed-off-by: Lennart Jern <[email protected]>
1 parent 2f7beec commit b1b79af

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ $(E2E_NO_ARTIFACT_TEMPLATES_DIR)/cluster-template.yaml: $(E2E_KUSTOMIZE_DIR)/wit
197197
$(E2E_NO_ARTIFACT_TEMPLATES_DIR)/cluster-template-%.yaml: $(E2E_KUSTOMIZE_DIR)/% $(KUSTOMIZE) FORCE
198198
$(KUSTOMIZE) build "$<" > "$@"
199199

200-
e2e-prerequisites: $(GINKGO) e2e-templates e2e-image test-e2e-image-prerequisites ## Build all artifacts required by e2e tests
200+
e2e-prerequisites: $(GINKGO) e2e-templates e2e-image ## Build all artifacts required by e2e tests
201201

202202
# Can be run manually, e.g. via:
203203
# export OPENSTACK_CLOUD_YAML_FILE="$(pwd)/clouds.yaml"
@@ -221,12 +221,6 @@ build-e2e-tests: $(GINKGO)
221221
e2e-image: CONTROLLER_IMG_TAG = "gcr.io/k8s-staging-capi-openstack/capi-openstack-controller:e2e"
222222
e2e-image: docker-build
223223

224-
# Pull all the images references in test/e2e/data/e2e_conf.yaml
225-
test-e2e-image-prerequisites:
226-
docker pull registry.k8s.io/cluster-api/cluster-api-controller:v1.10.1
227-
docker pull registry.k8s.io/cluster-api/kubeadm-bootstrap-controller:v1.10.1
228-
docker pull registry.k8s.io/cluster-api/kubeadm-control-plane-controller:v1.10.1
229-
230224
CONFORMANCE_E2E_ARGS ?= -kubetest.config-file=$(KUBETEST_CONF_PATH)
231225
CONFORMANCE_E2E_ARGS += $(E2E_ARGS)
232226
.PHONY: test-conformance

scripts/ci-e2e.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ prerequisites_log="${ARTIFACTS}/logs/e2e-prerequisites.log"
100100
retry 10 10 scp $(get_ssh_common_args) "${container_archive}" "cloud@${CONTROLLER_IP}:capo-e2e-image.tar"
101101
retry 10 10 $(get_ssh_cmd) ${CONTROLLER_IP} -- sudo chown root:root capo-e2e-image.tar
102102
retry 10 10 $(get_ssh_cmd) ${CONTROLLER_IP} -- sudo chmod u=rw,g=r,o=r capo-e2e-image.tar
103+
retry 10 10 $(get_ssh_cmd) ${CONTROLLER_IP} -- sudo mkdir -p /var/www/html
103104
retry 10 10 $(get_ssh_cmd) ${CONTROLLER_IP} -- sudo mv capo-e2e-image.tar /var/www/html/capo-e2e-image.tar
104105
) >"$prerequisites_log" 2>&1 &
105106
build_pid=$!

0 commit comments

Comments
 (0)