From 1704977a4b9d300960ebd3c1257e6cb9ef2a698a Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Thu, 24 Oct 2019 11:08:21 -0700 Subject: [PATCH] Explain using `go` to install kustomize. --- docs/INSTALL.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index decee8173..a60c12bf5 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -24,6 +24,23 @@ curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest | mv kustomize_kustomize\.v*_${opsys}_amd64 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 ```