fix: Allow running make cluster-down when binaries are missing

Swap the order of commands in hack/e2e-setup.sh, so it becomes possible
to run 'make cluster-down` when the kind/kubectl binaries are missing.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-06-13 11:18:17 +02:00
parent 10b34fdf24
commit 1a814389fe
2 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ cluster-up:
.PHONY: cluster-down
cluster-down:
hack/e2e-setup.sh --cleanup
hack/e2e-setup.sh --install-kind --install-kubectl --cleanup
.PHONY: build-venv
build-venv:

View File

@@ -389,11 +389,6 @@ if [ "${ARGCOUNT}" -eq "0" ]; then
OPT_CREATE_NAD=true
fi
if [ "${OPT_CLEANUP}" == true ]; then
cleanup
exit 0
fi
if [ "${OPT_INSTALL_KIND}" == true ]; then
install_kind
fi
@@ -402,6 +397,11 @@ if [ "${OPT_INSTALL_KUBECTL}" == true ]; then
install_kubectl
fi
if [ "${OPT_CLEANUP}" == true ]; then
cleanup
exit 0
fi
if [ "${OPT_CONFIGURE_INOTIFY_LIMITS}" == true ]; then
configure_inotify_limits
fi