From c00df74a92a1b6721fc6f9a72a11e3e7d1c37b8d Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Sat, 8 Nov 2025 12:32:23 +1300 Subject: [PATCH] fix: `k8s_setup.sh` should use newer `kubectl` release URL - Use the newer release URL for `kubectl`. - Quote wrap variables with user supplied values. Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> --- build/kubernetes/k8s_setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/kubernetes/k8s_setup.sh b/build/kubernetes/k8s_setup.sh index 3f1da356..1cc4f95c 100755 --- a/build/kubernetes/k8s_setup.sh +++ b/build/kubernetes/k8s_setup.sh @@ -2,13 +2,13 @@ set -v # Install kubectl -curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ +curl -Lo ./kubectl "https://dl.k8s.io/release/${K8S_VERSION}/bin/linux/amd64/kubectl" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ # Install kind -curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64 && chmod +x ./kind && sudo mv ./kind /usr/local/bin/ +curl -Lo ./kind "https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64" && chmod +x ./kind && sudo mv ./kind /usr/local/bin/ # Create a single node cluster -kind create cluster --image kindest/node:${K8S_VERSION} +kind create cluster --image "kindest/node:${K8S_VERSION}" # Wait for cluster to be ready JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}';