Skip to content

hack/deploy-k8s-metrics-server.sh: wget not available on macOS by default, causing Quick Start failure #7273

@Krishiv-Mahajan

Description

@Krishiv-Mahajan

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

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions