Skip to content

Commit

Permalink
Merge pull request #1522 from zimnx/mz/fix-gh-actions
Browse files Browse the repository at this point in the history
Fix GH Action installing kubernetes
  • Loading branch information
scylla-operator-bot[bot] authored Nov 3, 2023
2 parents 964418f + 013a04d commit 382095e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/setup-kubernetes/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,14 @@ runs:
sudo apt-get update
sudo apt-get install -y --no-install-recommends conntrack socat ebtables
curl -fsSL https://pkgs.k8s.io/core:/stable:/v${KUBERNETES_VERSION_SHORT}/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v${KUBERNETES_VERSION_SHORT}/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
# Remove conflicting packages (also removes podman).
sudo apt-get remove containernetworking-plugins
sudo apt-get remove kubelet kubeadm kubectl
sudo apt-get autoremove
sudo apt-get install -y --no-install-recommends kubelet="${KUBERNETES_PKG_VERSION}" kubeadm="${KUBERNETES_PKG_VERSION}" kubectl="${KUBERNETES_PKG_VERSION}"
# Podman got wiped by removing `containernetworking-plugins` so we have to install it from the new repo.
Expand Down

0 comments on commit 382095e

Please sign in to comment.