Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/dependencies/install-helm/setup-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function install_helm3 {
fi

export HELM_INSTALL_DIR=/usr/bin
curl https://raw.githubusercontent.com/helm/helm/06468084e85c244c712834933d25ea232a4c2093/scripts/get > get_helm.sh # v4.2.0
curl -fL --retry 3 https://raw.githubusercontent.com/helm/helm/06468084e85c244c712834933d25ea232a4c2093/scripts/get -o get_helm.sh # v4.2.0
# we need to modify the script with a different path because on the Azure pipelines the HELM_INSTALL_DIR env var is not honoured
sed -i 's#/usr/local/bin#/usr/bin#g' get_helm.sh
chmod 700 get_helm.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ if [ "$ARCH" == "arm64" ]; then
ARCH="aarch64"
fi

wget https://github.com/koalaman/shellcheck/releases/download/v$VERSION/shellcheck-v$VERSION.linux.$ARCH.tar.xz -O shellcheck.tar.xz
wget --https-only --tries=3 --output-document=shellcheck.tar.xz "https://github.com/koalaman/shellcheck/releases/download/v${VERSION}/shellcheck-v${VERSION}.linux.${ARCH}.tar.xz"
tar xf shellcheck.tar.xz -C /tmp --strip-components 1
rm -f shellcheck.tar.xz
chmod +x /tmp/shellcheck
sudo mv /tmp/shellcheck /usr/bin
shellcheck --version
3 changes: 2 additions & 1 deletion .github/actions/dependencies/install-syft/install_syft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ if [ -z "$ARCH" ]; then
ARCH="amd64"
fi

wget https://github.com/anchore/syft/releases/download/v${VERSION}/syft_${VERSION}_linux_${ARCH}.tar.gz -O syft.tar.gz
wget --https-only --tries=3 --output-document=syft.tar.gz "https://github.com/anchore/syft/releases/download/v${VERSION}/syft_${VERSION}_linux_${ARCH}.tar.gz"
tar xf syft.tar.gz -C /tmp
rm -f syft.tar.gz
chmod +x /tmp/syft
sudo mv /tmp/syft /usr/bin
syft version
4 changes: 3 additions & 1 deletion .github/actions/dependencies/install-yq/install_yq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ if [ -z "$ARCH" ]; then
ARCH="amd64"
fi

curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH} > yq && chmod +x yq
curl -fL --retry 3 "https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH}" -o yq
chmod +x yq
sudo mv yq /usr/bin/
yq --version
10 changes: 7 additions & 3 deletions .github/actions/dependencies/setup-kind/setup-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ function is_podman() {

function install_kubectl {
if [ "${TEST_KUBECTL_VERSION:-latest}" = "latest" ]; then
TEST_KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
TEST_KUBECTL_VERSION=$(curl -fsSL --retry 3 https://dl.k8s.io/release/stable.txt)
fi
curl -Lo kubectl https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && chmod +x kubectl
curl -fL --retry 3 -o kubectl "https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin
kubectl version --client

if is_podman; then
sudo ln -sf /usr/local/bin/kubectl /usr/bin/kubectl
Expand All @@ -66,10 +68,12 @@ function install_kubernetes_provisioner {

KIND_URL=https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-${ARCH}

curl -Lo kind ${KIND_URL} && chmod +x kind
curl -fL --retry 3 -o kind "${KIND_URL}"
chmod +x kind

# Move the binary to a globally accessible location
sudo mv kind /usr/local/bin/kind
kind version
sudo ln -sf /usr/local/bin/kind /usr/bin/kind

if command -v kind >/dev/null 2>&1; then
Expand Down
10 changes: 7 additions & 3 deletions .github/actions/dependencies/setup-minikube/setup-minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ fi

function install_kubectl {
if [ "${TEST_KUBECTL_VERSION:-latest}" = "latest" ]; then
TEST_KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
TEST_KUBECTL_VERSION=$(curl -fsSL --retry 3 https://dl.k8s.io/release/stable.txt)
fi
curl -Lo kubectl https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && chmod +x kubectl
curl -fL --retry 3 -o kubectl "https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl"
chmod +x kubectl
sudo cp kubectl /usr/local/bin
kubectl version --client
}

function label_node {
Expand All @@ -51,8 +53,10 @@ if [ "$TEST_CLUSTER" = "minikube" ]; then
KUBE_VERSION="v${KUBE_VERSION#v}"
fi

curl -Lo minikube ${TEST_MINIKUBE_URL} && chmod +x minikube
curl -fL --retry 3 -o minikube "${TEST_MINIKUBE_URL}"
chmod +x minikube
sudo cp minikube /usr/local/bin
minikube version

export MINIKUBE_WANTUPDATENOTIFICATION=false
export MINIKUBE_WANTREPORTERRORPROMPT=false
Expand Down
Loading