From 43500fd6b8cc53fdb7dca5790df64823d0839665 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 9 Jun 2020 11:10:17 +0200 Subject: [PATCH] ci: disable storage addons when starting minikube Storage providers and the default storage class is not needed for Ceph-CSI testing. In order to reduce resources and potential conflicts between storage plugins, disable them. Signed-off-by: Niels de Vos --- scripts/minikube.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/minikube.sh b/scripts/minikube.sh index d35c8b458..ba1add133 100755 --- a/scripts/minikube.sh +++ b/scripts/minikube.sh @@ -67,6 +67,14 @@ function enable_psp() { cp "$DIR"/psp.yaml "$HOME"/.minikube/files/etc/kubernetes/addons/psp.yaml } +# Storage providers and the default storage class is not needed for Ceph-CSI +# testing. In order to reduce resources and potential conflicts between storage +# plugins, disable them. +function disable_storage_addons() { + minikube addons disable default-storageclass 2>/dev/null || true + minikube addons disable storage-provisioner 2>/dev/null || true +} + # configure minikube MINIKUBE_ARCH=${MINIKUBE_ARCH:-"amd64"} MINIKUBE_VERSION=${MINIKUBE_VERSION:-"latest"} @@ -125,6 +133,8 @@ up) install_kubectl fi + disable_storage_addons + echo "starting minikube with kubeadm bootstrapper" if minikube_supports_psp; then enable_psp