Skip to content

Commit af147fc

Browse files
author
孔令飞
committed
chore: auto detects the CPU arch when install kubectl
1 parent 99acc69 commit af147fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/make-rules/tools.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ _install.kubeconform: ## Install kubeconform command line tool.
173173

174174
.PHONY: _install.kubectl
175175
_install.kubectl: ## Install kubectl command line tool.
176-
@curl --create-dirs -L -o $$HOME/bin/kubectl "https://dl.k8s.io/release/$(shell curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
176+
@curl --create-dirs -L -o $$HOME/bin/kubectl "https://dl.k8s.io/release/$(shell curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(shell $(GO) env GOHOSTARCH)/kubectl"
177177
@chmod +x $$HOME/bin/kubectl
178178
@$(SCRIPTS_DIR)/add-completion.sh kubectl bash
179179

0 commit comments

Comments
 (0)