Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
ci: Switch to pkgs.k8s.io
Browse files Browse the repository at this point in the history
The kubernetes repositories at packages.cloud.google.com have been removed
as announced in [1]. Switch to the new infrastructure at pkgs.k8s.io. Use
the latest available version (v1.29).

[1] https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/ .

Fixes #5811

Signed-off-by: Greg Kurz <groug@kaod.org>
  • Loading branch information
gkurz committed Mar 5, 2024
1 parent 40c641c commit 92b2751
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .ci/install_kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ if [ "$ID" == "ubuntu" ]; then
sudo -E apt purge kubelet -y
fi
sudo bash -c "cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://packages.cloud.google.com/apt/ kubernetes-xenial-unstable main
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /
EOF"

chronic sudo -E sed -i 's/^[ \t]*//' /etc/apt/sources.list.d/kubernetes.list
curl -fsSL https://dl.k8s.io/apt/doc/apt-key.gpg | sudo apt-key add -
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
chronic sudo -E apt update
chronic sudo -E apt install --allow-downgrades -y kubelet="$kubernetes_version" kubeadm="$kubernetes_version" kubectl="$kubernetes_version"
elif [[ "$ID" =~ ^(alinux|centos|fedora|rhel)$ ]]; then
Expand Down
2 changes: 2 additions & 0 deletions .ci/setup_env_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ source "/etc/os-release" || source "/usr/lib/os-release"
source "${cidir}/lib.sh"

echo "Update apt repositories"
# FIXME: workaround for https://github.com/kata-containers/tests/issues/5811
sudo -E rm -f /etc/apt/sources.list.d/kubernetes.list
sudo -E apt update

# Removing man-db, workflow's kept failing, fixes: #4480
Expand Down

0 comments on commit 92b2751

Please sign in to comment.