-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
What happened:
Running hack/deploy-k8s-metrics-server.sh on macOS fails immediately withzsh: command not found: wgetbecause the script uses wget to download the metrics-server manifest, and wget is not installed on macOS by default.
What you expected to happen:
The script should download the metrics-server manifest and deploy it successfully on macOS without requiring any extra tool installations.
How to reproduce it (as minimally and precisely as possible):
On a macOS machine (without wget installed via Homebrew)
Run hack/deploy-k8s-metrics-server.sh
Script immediately fails at the wget download step
Anything else we need to know?:
wget is a GNU tool not bundled with macOS. The fix is to replace it with curl, which is available on macOS, Linux, and Windows and is already used consistently across other scripts in hack/ (e.g. util.sh, install-cli.sh).
Suggested fix :
In hack/deploy-k8s-metrics-server.sh first try curl , if it fails try using wget, if even that fails returns a clear error message
Environment:
Karmada version: latest (master)
os: mac os Version 26.3 (25D125)
Part of #7269
Metadata
Metadata
Assignees
Labels
Type
Projects
Status