Skip to content

Commit 0dd42fa

Browse files
adding a variable for server-url
1 parent 4620091 commit 0dd42fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hack/deploy-k8s-metrics-server.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ fi
5353
MEMBER_CLUSTER_NAME=$2
5454

5555
# get deploy yaml
56+
METRICS_SERVER_URL="https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.6.3/components.yaml"
5657
# Prefer curl (available on macOS + Linux); fall back to wget; fail with a clear error if neither exists
5758
if command -v curl &>/dev/null; then
58-
curl -fsSL https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.6.3/components.yaml -o "${_tmp}/components.yaml"
59+
curl -fsSL "${METRICS_SERVER_URL}" -o "${_tmp}/components.yaml"
5960
elif command -v wget &>/dev/null; then
60-
wget -qO "${_tmp}/components.yaml" https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.6.3/components.yaml
61+
wget -qO "${_tmp}/components.yaml" "${METRICS_SERVER_URL}"
6162
else
6263
echo "ERROR: neither curl nor wget found. Please install one of them and retry."
6364
exit 1

0 commit comments

Comments
 (0)