From 268c0f196591b99ea68dbba0acefce75b106109c Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Tue, 13 Oct 2020 17:16:48 +0530 Subject: [PATCH] e2e: add snapshotter deploy functionality to minikube script Just like deploy-rook and teardown-rook, this patch will add install snapshotter and cleanup snapshotter option to minikube script. Signed-off-by: Prasanna Kumar Kalever --- scripts/minikube.sh | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/scripts/minikube.sh b/scripts/minikube.sh index 4d7e01ee2..2180afb05 100755 --- a/scripts/minikube.sh +++ b/scripts/minikube.sh @@ -249,6 +249,11 @@ deploy-rook) DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" "$DIR"/rook.sh deploy ;; +install-snapshotter) + echo "install snapshot controller" + DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" + "$DIR"/install-snapshot.sh install + ;; create-block-pool) echo "creating a block pool named $ROOK_BLOCK_POOL_NAME" DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" @@ -259,6 +264,11 @@ delete-block-pool) DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" "$DIR"/rook.sh delete-block-pool ;; +cleanup-snapshotter) + echo "cleanup snapshot controller" + DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" + "$DIR"/install-snapshot.sh cleanup + ;; teardown-rook) echo "teardown rook" DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" @@ -286,16 +296,18 @@ clean) *) echo " $0 [command] Available Commands: - up Starts a local kubernetes cluster and prepare disk for rook - down Stops a running local kubernetes cluster - clean Deletes a local kubernetes cluster - ssh Log into or run a command on a minikube machine with SSH - deploy-rook Deploy rook to minikube - create-block-pool Creates a rook block pool (named $ROOK_BLOCK_POOL_NAME) - delete-block-pool Deletes a rook block pool (named $ROOK_BLOCK_POOL_NAME) - teardown-rook Teardown a rook from minikube - cephcsi Copy built docker images to kubernetes cluster - k8s-sidecar Copy kubernetes sidecar docker images to kubernetes cluster + up Starts a local kubernetes cluster and prepare disk for rook + down Stops a running local kubernetes cluster + clean Deletes a local kubernetes cluster + ssh Log into or run a command on a minikube machine with SSH + deploy-rook Deploy rook to minikube + install-snapshotter Install snapshot controller + create-block-pool Creates a rook block pool (named $ROOK_BLOCK_POOL_NAME) + delete-block-pool Deletes a rook block pool (named $ROOK_BLOCK_POOL_NAME) + cleanup-snapshotter Cleanup snapshot controller + teardown-rook Teardown rook from minikube + cephcsi Copy built docker images to kubernetes cluster + k8s-sidecar Copy kubernetes sidecar docker images to kubernetes cluster " >&2 ;; esac