Skip to content

Commit

Permalink
ci: fix ci permission issue with minikube start
Browse files Browse the repository at this point in the history
this commit upgrade the minikube, k8s, crictl versions
in CI and also fix permission error in the github runner.

Signed-off-by: subhamkrai <[email protected]>
(cherry picked from commit f647444)
(cherry picked from commit 3b91880)
  • Loading branch information
subhamkrai committed Sep 20, 2024
1 parent 7c3d93e commit d291eb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/canary-test-config/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
14 changes: 7 additions & 7 deletions tests/scripts/github-action-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -707,25 +707,25 @@ 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
curl -LO https://storage.googleapis.com/minikube/releases/$MINIKUBE_VERSION/minikube_latest_amd64.deb
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"

Expand All @@ -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"
Expand Down

0 comments on commit d291eb1

Please sign in to comment.