Skip to content

Commit efbef7b

Browse files
authored
Merge pull request #167 from polarathene/patch-1
fix: `k8s_setup.sh` should use newer `kubectl` release URL
2 parents c05e817 + c00df74 commit efbef7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/kubernetes/k8s_setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
set -v
33

44
# Install kubectl
5-
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/
5+
curl -Lo ./kubectl "https://dl.k8s.io/release/${K8S_VERSION}/bin/linux/amd64/kubectl" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
66

77
# Install kind
8-
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/
8+
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/
99

1010
# Create a single node cluster
11-
kind create cluster --image kindest/node:${K8S_VERSION}
11+
kind create cluster --image "kindest/node:${K8S_VERSION}"
1212

1313
# Wait for cluster to be ready
1414
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}';

0 commit comments

Comments
 (0)