From f89076b1d734f6066194f3b39c7e756c923f2c15 Mon Sep 17 00:00:00 2001 From: Marcel Lauhoff Date: Fri, 26 Aug 2022 19:57:12 +0200 Subject: [PATCH] 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 --- scripts/minikube.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/minikube.sh b/scripts/minikube.sh index 1def9a369..e864f95b7 100755 --- a/scripts/minikube.sh +++ b/scripts/minikube.sh @@ -180,6 +180,7 @@ function disable_storage_addons() { # configure minikube MINIKUBE_ARCH=${MINIKUBE_ARCH:-"amd64"} MINIKUBE_VERSION=${MINIKUBE_VERSION:-"latest"} +MINIKUBE_ISO_URL=${MINIKUBE_ISO_URL:-""} KUBE_VERSION=${KUBE_VERSION:-"latest"} CONTAINER_CMD=${CONTAINER_CMD:-"docker"} MEMORY=${MEMORY:-"4096"} @@ -206,6 +207,10 @@ else DISK_CONFIG="" fi +if [[ -n "${MINIKUBE_ISO_URL}" ]]; then + EXTRA_CONFIG="${EXTRA_CONFIG} --iso-url ${MINIKUBE_ISO_URL}" +fi + # configure csi image version CSI_IMAGE_VERSION=${CSI_IMAGE_VERSION:-"canary"}