mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
ci: remove check for snapshot controller installation and cleanup
At present, the check is performed to validate the version of kube is v1.17 and this commit remove the same. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
5aabd4e1d2
commit
c9773db3f3
@ -27,21 +27,12 @@ sudo scripts/minikube.sh create-block-pool
|
||||
# pull docker images to speed up e2e
|
||||
sudo scripts/minikube.sh cephcsi
|
||||
sudo scripts/minikube.sh k8s-sidecar
|
||||
KUBE_MAJOR=$(kube_version 1)
|
||||
KUBE_MINOR=$(kube_version 2)
|
||||
# skip snapshot operation if kube version is less than 1.17.0
|
||||
if [[ "${KUBE_MAJOR}" -ge 1 ]] && [[ "${KUBE_MINOR}" -ge 17 ]]; then
|
||||
# delete snapshot CRD created by ceph-csi in rook
|
||||
scripts/install-snapshot.sh delete-crd
|
||||
# install snapshot controller
|
||||
scripts/install-snapshot.sh install
|
||||
fi
|
||||
# install snapshot controller and create snapshot CRD
|
||||
scripts/install-snapshot.sh install
|
||||
|
||||
# functional tests
|
||||
make run-e2e E2E_ARGS="${*}"
|
||||
|
||||
if [[ "${KUBE_MAJOR}" -ge 1 ]] && [[ "${KUBE_MINOR}" -ge 17 ]]; then
|
||||
# delete snapshot CRD
|
||||
scripts/install-snapshot.sh cleanup
|
||||
fi
|
||||
# cleanup
|
||||
scripts/install-snapshot.sh cleanup
|
||||
sudo scripts/minikube.sh clean
|
||||
|
@ -35,15 +35,8 @@ sudo scripts/minikube.sh k8s-sidecar
|
||||
NAMESPACE=cephcsi-e2e-$RANDOM
|
||||
# create ns for e2e
|
||||
kubectl create ns ${NAMESPACE}
|
||||
KUBE_MAJOR=$(kube_version 1)
|
||||
KUBE_MINOR=$(kube_version 2)
|
||||
# skip snapshot operation if kube version is less than 1.17.0
|
||||
if [[ "${KUBE_MAJOR}" -ge 1 ]] && [[ "${KUBE_MINOR}" -ge 17 ]]; then
|
||||
# delete snapshot CRD created by ceph-csi in rook
|
||||
scripts/install-snapshot.sh delete-crd
|
||||
# install snapshot controller
|
||||
scripts/install-snapshot.sh install
|
||||
fi
|
||||
# install snapshot controller and create snapshot CRD
|
||||
scripts/install-snapshot.sh install
|
||||
# set up helm
|
||||
scripts/install-helm.sh up
|
||||
# install cephcsi helm charts
|
||||
@ -51,12 +44,8 @@ scripts/install-helm.sh install-cephcsi --namespace ${NAMESPACE}
|
||||
# functional tests
|
||||
make run-e2e NAMESPACE="${NAMESPACE}" E2E_ARGS="--deploy-cephfs=false --deploy-rbd=false ${*}"
|
||||
|
||||
#cleanup
|
||||
# skip snapshot operation if kube version is less than 1.17.0
|
||||
if [[ "${KUBE_MAJOR}" -ge 1 ]] && [[ "${KUBE_MINOR}" -ge 17 ]]; then
|
||||
# delete snapshot CRD
|
||||
scripts/install-snapshot.sh cleanup
|
||||
fi
|
||||
# cleanup
|
||||
scripts/install-snapshot.sh cleanup
|
||||
scripts/install-helm.sh cleanup-cephcsi --namespace ${NAMESPACE}
|
||||
scripts/install-helm.sh clean
|
||||
kubectl delete ns ${NAMESPACE}
|
||||
|
Loading…
Reference in New Issue
Block a user