File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5353MEMBER_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
5758if 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"
5960elif 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}"
6162else
6263 echo "ERROR: neither curl nor wget found. Please install one of them and retry."
6364 exit 1
You can’t perform that action at this time.
0 commit comments