mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
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 <ndevos@redhat.com>
This commit is contained in:
parent
4937ee97e9
commit
43500fd6b8
@ -67,6 +67,14 @@ function enable_psp() {
|
|||||||
cp "$DIR"/psp.yaml "$HOME"/.minikube/files/etc/kubernetes/addons/psp.yaml
|
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
|
# configure minikube
|
||||||
MINIKUBE_ARCH=${MINIKUBE_ARCH:-"amd64"}
|
MINIKUBE_ARCH=${MINIKUBE_ARCH:-"amd64"}
|
||||||
MINIKUBE_VERSION=${MINIKUBE_VERSION:-"latest"}
|
MINIKUBE_VERSION=${MINIKUBE_VERSION:-"latest"}
|
||||||
@ -125,6 +133,8 @@ up)
|
|||||||
install_kubectl
|
install_kubectl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
disable_storage_addons
|
||||||
|
|
||||||
echo "starting minikube with kubeadm bootstrapper"
|
echo "starting minikube with kubeadm bootstrapper"
|
||||||
if minikube_supports_psp; then
|
if minikube_supports_psp; then
|
||||||
enable_psp
|
enable_psp
|
||||||
|
Loading…
Reference in New Issue
Block a user