scripts: Add env to set minikube iso url

Make iso url configurable to use pre-release minikube images or
local-built (file://)

Signed-off-by: Marcel Lauhoff <marcel.lauhoff@suse.com>
This commit is contained in:
Marcel Lauhoff 2022-08-26 19:57:12 +02:00 committed by mergify[bot]
parent da76d8ddae
commit f89076b1d7

View File

@ -180,6 +180,7 @@ function disable_storage_addons() {
# configure minikube # configure minikube
MINIKUBE_ARCH=${MINIKUBE_ARCH:-"amd64"} MINIKUBE_ARCH=${MINIKUBE_ARCH:-"amd64"}
MINIKUBE_VERSION=${MINIKUBE_VERSION:-"latest"} MINIKUBE_VERSION=${MINIKUBE_VERSION:-"latest"}
MINIKUBE_ISO_URL=${MINIKUBE_ISO_URL:-""}
KUBE_VERSION=${KUBE_VERSION:-"latest"} KUBE_VERSION=${KUBE_VERSION:-"latest"}
CONTAINER_CMD=${CONTAINER_CMD:-"docker"} CONTAINER_CMD=${CONTAINER_CMD:-"docker"}
MEMORY=${MEMORY:-"4096"} MEMORY=${MEMORY:-"4096"}
@ -206,6 +207,10 @@ else
DISK_CONFIG="" DISK_CONFIG=""
fi fi
if [[ -n "${MINIKUBE_ISO_URL}" ]]; then
EXTRA_CONFIG="${EXTRA_CONFIG} --iso-url ${MINIKUBE_ISO_URL}"
fi
# configure csi image version # configure csi image version
CSI_IMAGE_VERSION=${CSI_IMAGE_VERSION:-"canary"} CSI_IMAGE_VERSION=${CSI_IMAGE_VERSION:-"canary"}