Modify minikube script for long running cluster (#4705)

* Modify minikube script for long running cluster

* After testing on test project, reverting the change for JOBNAME

* Addressing review comment
This commit is contained in:
Priti Kumari
2021-05-17 14:32:21 +05:30
committed by GitHub
parent 7baeb9b18e
commit 697e3fec83
2 changed files with 16 additions and 0 deletions

View File

@@ -8,12 +8,27 @@ shout() {
set -ex
# This is one of the variables injected by ci-firewall. Its purpose is to allow scripts to handle uniqueness as needed
SCRIPT_IDENTITY=${SCRIPT_IDENTITY:-"def-id"}
case ${1} in
minikube)
# Integration tests
shout "| Running integration Tests on MiniKube"
make test-cmd-project
make test-integration-devfile
shout "Cleaning up some leftover namespaces"
set +x
for i in $(kubectl get namespace -o name); do
if [[ $i == "namespace/${SCRIPT_IDENTITY}"* ]]; then
kubectl delete $i
fi
done
set -x
odo logout
;;
minishift)
cd $HOME/openshift/odo

View File

@@ -47,6 +47,7 @@ case ${1} in
minikube delete
minikube start --vm-driver=docker --container-runtime=docker
minikube version
set +x
# Get kubectl cluster info
kubectl cluster-info