Skip to content

Commit

Permalink
Disable IPv6 in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Nov 13, 2024
1 parent 52fd367 commit 767c305
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/scripts/install-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ echo "deb [signed-by=/etc/apt/keyrings/cri-o-apt-keyring.gpg] https://download.o

apt-get update

apt-get install -y cri-o
apt-get install -y cri-o jq
if [ -z $CRIO_ONLY ]; then
apt-get install -y kubelet kubeadm kubectl
fi
2 changes: 1 addition & 1 deletion test/scripts/install-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gpgcheck=1
gpgkey=https://download.opensuse.org/repositories/isv:/kubernetes:/addons:/cri-o:/$PROJECT_PATH:/build/rpm/repodata/repomd.xml.key
EOF

dnf install -y cri-o
dnf install -y cri-o jq
if [ -z $CRIO_ONLY ]; then
dnf install -y container-selinux kubelet kubeadm kubectl
fi
5 changes: 5 additions & 0 deletions test/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ set -euxo pipefail
# It expects all required packages (kube*, cri-o) are already installed
# It is referenced from ../deb/Vagrantfile and ../rpm/Vagrantfile

# Disable IPv6 for CI
CNI_CONFIG=/etc/cni/net.d/10-crio-bridge.conflist
jq 'del(.plugins[0].ipam.routes[1], .plugins[0].ipam.ranges[1])' $CNI_CONFIG >tmp
mv tmp $CNI_CONFIG

systemctl start crio

# Disable swap
Expand Down

0 comments on commit 767c305

Please sign in to comment.