mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
remove duplicate contents and redirect
This commit is contained in:
@@ -7,35 +7,6 @@ description: >
|
||||
使用 Go 源码安装 Kustomize。
|
||||
---
|
||||
|
||||
需要先安装 [Go]。
|
||||
<meta http-equiv="refresh" content="0; url=https://kubectl.docs.kubernetes.io/zh/installation/source/" />
|
||||
|
||||
## 无需克隆源码库直接构建 kustomize CLI
|
||||
|
||||
```bash
|
||||
GOBIN=$(pwd)/ GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3
|
||||
```
|
||||
|
||||
## 在本地克隆源码库构建 kustomize CLI
|
||||
|
||||
```bash
|
||||
# 需要 go 1.13 或更高版本
|
||||
unset GOPATH
|
||||
# 详见 https://golang.org/doc/go1.13#modules
|
||||
unset GO111MODULES
|
||||
|
||||
# 拉取 repo
|
||||
git clone git@github.com:kubernetes-sigs/kustomize.git
|
||||
# 进入目录
|
||||
cd kustomize
|
||||
|
||||
# 如果您不想从 HEAD 开始构建, 则可以选择切换特定的标签
|
||||
git checkout kustomize/v3.2.3
|
||||
|
||||
# 开始构建
|
||||
(cd kustomize; go install .)
|
||||
|
||||
# 运行
|
||||
~/go/bin/kustomize version
|
||||
```
|
||||
|
||||
[Go]: https://golang.org
|
||||
Moved to https://github.com/kubernetes-sigs/cli-experimental
|
||||
Reference in New Issue
Block a user