mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Explain using go to install kustomize.
This commit is contained in:
@@ -24,6 +24,23 @@ curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest |
|
|||||||
mv kustomize_kustomize\.v*_${opsys}_amd64 kustomize
|
mv kustomize_kustomize\.v*_${opsys}_amd64 kustomize
|
||||||
chmod u+x kustomize
|
chmod u+x kustomize
|
||||||
```
|
```
|
||||||
|
## Try `go`
|
||||||
|
|
||||||
|
This method is more to show off how the `go` tool works,
|
||||||
|
than for any practical purpose. A kustomize developer should
|
||||||
|
clone the repo (see next section), and CI/CD scripts should
|
||||||
|
download a specific ready-to-run executable rather than
|
||||||
|
rely on the `go` tool.
|
||||||
|
|
||||||
|
Install the latest kustomize binary in the v3 series to `$GOPATH/bin`:
|
||||||
|
```
|
||||||
|
go install sigs.k8s.io/kustomize/kustomize/v3
|
||||||
|
```
|
||||||
|
|
||||||
|
Install a specific version:
|
||||||
|
```
|
||||||
|
go get sigs.k8s.io/kustomize/kustomize/v3@v3.3.0
|
||||||
|
```
|
||||||
|
|
||||||
## Build the kustomize CLI from local source
|
## Build the kustomize CLI from local source
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user