Skip to content

Commit

Permalink
Fix ci issues
Browse files Browse the repository at this point in the history
Signed-off-by: Yehudit Kerido <[email protected]>
  • Loading branch information
Yehudit Kerido committed Oct 29, 2024
1 parent 76bc603 commit 0ea6bee
Showing 1 changed file with 21 additions and 27 deletions.
48 changes: 21 additions & 27 deletions test/e2e/v1beta1/scripts/gh-actions/setup-minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,30 @@ TRIAL_IMAGES=${3:-""}
EXPERIMENTS=${4:-""}
ALGORITHMS=${5:-""}

#function check_minikube() {
# if minikube status >/dev/null 2>&1; then
# echo "Minikube is already running."
# else
# echo "Minikube is not running. Starting Minikube..."
# minikube start
# fi
#}
function check_minikube() {
if minikube status >/dev/null 2>&1; then
echo "Minikube is already running."
else
echo "Minikube is not running. Starting Minikube..."
minikube start
fi
}

# Choose upgrade method based on your system
# Option 1: Using package manager (replace commands for your system)
#if [ -x "$(command -v apt-get)" ]; then
# echo "Upgrading Podman using apt-get..."
# sudo apt-get update
# sudo apt-get install -y podman
#elif [ -x "$(command -v dnf)" ]; then
# echo "Upgrading Podman using dnf..."
# sudo dnf upgrade podman -y
#else
# echo "Package manager not found. Skipping upgrade."
#fi

# Option 2: Manual installation (uncomment and replace URLs)
# curl -LO https://github.com/containers/podman/releases/latest/download/podman-linux-amd64 # Replace URL
# chmod +x podman-linux-amd64
# sudo mv podman-linux-amd64 /usr/local/bin/podman


#echo "Checking Minikube Kubernetes Cluster"
#check_minikube
if [ -x "$(command -v apt-get)" ]; then
echo "Upgrading Podman using apt-get..."
sudo apt-get update
sudo apt-get install -y podman
elif [ -x "$(command -v dnf)" ]; then
echo "Upgrading Podman using dnf..."
sudo dnf upgrade podman -y
else
echo "Package manager not found. Skipping upgrade."
fi

echo "Checking Minikube Kubernetes Cluster"
check_minikube

echo "Start to setup Minikube Kubernetes Cluster"
kubectl version
Expand Down

0 comments on commit 0ea6bee

Please sign in to comment.