[Ubuntu] unify apt install calls (#9953)

This commit is contained in:
Mikhail Koliada
2024-05-29 13:43:07 +02:00
committed by GitHub
parent 448c998191
commit 899fcf9b16
34 changed files with 50 additions and 49 deletions

View File

@@ -23,7 +23,8 @@ install "${kind_binary_path}" /usr/local/bin/kind
kubectl_minor_version=$(curl -fsSL "https://dl.k8s.io/release/stable.txt" | cut -d'.' -f1,2 )
curl -fsSL https://pkgs.k8s.io/core:/stable:/$kubectl_minor_version/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:/'$kubectl_minor_version'/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update -y && sudo apt-get install -y kubectl
apt-get update
apt-get install kubectl
rm -f /etc/apt/sources.list.d/kubernetes.list
# Install Helm