mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user