Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 9f3c3b4

Browse files
authored
Fix: kubectl scorecard warning download then run (#360)
* Fix. kubectl scorecard warning download then run Signed-off-by: Eoghan Conlon <[email protected]>
1 parent 9db6ccc commit 9f3c3b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/ci.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ export PATH="${PATH}:${HOME}/go/bin"
2828
echo "export PATH=\"${PATH}:${HOME}/go/bin/:${HOME}.local/bin/\"" >>~/.bashrc
2929
go install sigs.k8s.io/[email protected]
3030

31-
wget -q https://dl.k8s.io/release/v1.27.3/bin/linux/amd64/kubectl -O "${HOME}/go/bin/kubectl"
32-
chmod +x "${HOME}/go/bin/kubectl"
31+
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.27/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list
32+
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.27/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
33+
sudo apt-get update
34+
sudo apt-get install -y kubectl=1.27.3-1.1
3335
}
3436

3537
create_kind_cluster(){

0 commit comments

Comments
 (0)