ci: fix ci permission issue with minikube start

this commit upgrade the minikube, k8s, crictl versions
in CI and also fix permission error in the github runner.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit f647444515)
This commit is contained in:
subhamkrai authored and Mergify committed 2024-09-19 16:01:29 +00:00
1 parent d6e270a714
commit 3b9188071d
2 files changed
+8 -8

No files matched your search

@@ -19,7 +19,7 @@ runs:
- name: Setup Minikube
shell: bash --noprofile --norc -eo pipefail -x {0}
run: |
tests/scripts/github-action-helper.sh install_minikube_with_none_driver v1.30.0
tests/scripts/github-action-helper.sh install_minikube_with_none_driver v1.31.0
- name: install deps
shell: bash --noprofile --norc -eo pipefail -x {0}
+7 -7
View File
@@ -707,8 +707,8 @@ function test_csi_nfs_workload {
}
function install_minikube_with_none_driver() {
CRICTL_VERSION="v1.30.0"
MINIKUBE_VERSION="v1.32.0"
CRICTL_VERSION="v1.31.1"
MINIKUBE_VERSION="v1.34.0"
sudo apt update
sudo apt install -y conntrack socat
@@ -716,16 +716,16 @@ function install_minikube_with_none_driver() {
sudo dpkg -i minikube_latest_amd64.deb
rm -f minikube_latest_amd64.deb
curl -LO https://github.com/Mirantis/cri-dockerd/releases/download/v0.3.9/cri-dockerd_0.3.9.3-0.ubuntu-focal_amd64.deb
sudo dpkg -i cri-dockerd_0.3.9.3-0.ubuntu-focal_amd64.deb
rm -f cri-dockerd_0.3.9.3-0.ubuntu-focal_amd64.deb
curl -LO https://github.com/Mirantis/cri-dockerd/releases/download/v0.3.15/cri-dockerd_0.3.15.3-0.ubuntu-focal_amd64.deb
sudo dpkg -i cri-dockerd_0.3.15.3-0.ubuntu-focal_amd64.deb
rm -f cri-dockerd_0.3.15.3-0.ubuntu-focal_amd64.deb
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-$CRICTL_VERSION-linux-amd64.tar.gz
sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
rm -f crictl-$CRICTL_VERSION-linux-amd64.tar.gz
sudo sysctl fs.protected_regular=0
CNI_PLUGIN_VERSION="v1.4.0"
CNI_PLUGIN_VERSION="v1.5.1"
CNI_PLUGIN_TAR="cni-plugins-linux-amd64-$CNI_PLUGIN_VERSION.tgz" # change arch if not on amd64
CNI_PLUGIN_INSTALL_DIR="/opt/cni/bin"
@@ -735,7 +735,7 @@ function install_minikube_with_none_driver() {
rm "$CNI_PLUGIN_TAR"
export MINIKUBE_HOME=$HOME CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config
sudo -E minikube start --kubernetes-version="$1" --driver=none --memory 6g --cpus=2 --addons ingress --cni=calico
minikube start --kubernetes-version="$1" --driver=none --memory 6g --cpus=2 --addons ingress --cni=calico
}
FUNCTION="$1"