File tree Expand file tree Collapse file tree 5 files changed +56
-14
lines changed
references/kustomize/cmd/version Expand file tree Collapse file tree 5 files changed +56
-14
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ kustomization file, and referring to this directory as a
4545wants to use it. This encourages modularity and
4646relocatability.
4747
48- To disable this, use v3, and the ` load_restrictor ` flag:
48+ To disable this in v3, use the ` load_restrictor ` flag:
4949
5050``` bash
5151kustomize build --load_restrictor none $target
5252```
5353
54- To disable this in v4, use the ` load-restrictor ` flag:
54+ To disable this in v4+ , use the ` load-restrictor ` flag:
5555
5656``` bash
5757kustomize build --load-restrictor LoadRestrictionsNone $target
Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ The images are hosted in kubernetes official GCR repositories.
1212
1313See [ GCR page] for available images.
1414
15- The following commands are how to pull and run kustomize 3.8.7 docker image.
16-
1715``` bash
18- docker pull k8s.gcr.io/kustomize/kustomize:v3.8.7
19- docker run k8s.gcr.io/kustomize/kustomize:v3.8.7 version
16+ # pull the image
17+ docker pull k8s.gcr.io/kustomize/kustomize:v5.0.0
18+
19+ # run 'kustomize version'
20+ docker run k8s.gcr.io/kustomize/kustomize:v5.0.0 version
2021```
2122
2223[ GCR page ] : https://us.gcr.io/k8s-artifacts-prod/kustomize/kustomize
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ Requires [Go] to be installed.
1414For ` go version ` ≥ ` go1.17 `
1515
1616```
17- GOBIN=$(pwd)/ GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v4 @latest
17+ GOBIN=$(pwd)/ GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v5 @latest
1818```
1919
2020For ` go version ` < ` go1.17 `
2121
2222``` bash
23- GOBIN=$( pwd) / GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v4
23+ GOBIN=$( pwd) / GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v5
2424```
2525
2626## Install the kustomize CLI from local source with cloning the repo
@@ -38,10 +38,10 @@ cd kustomize
3838
3939# Optionally checkout a particular tag if you don't
4040# want to build at head
41- git checkout kustomize/v4.5.2
41+ git checkout kustomize/v5.0.0
4242
43- # build the binary
44- (cd kustomize; go install .)
43+ # build the binary -- this installs the binary to your go bin path
44+ make kustomize
4545
4646# run it
4747~ /go/bin/kustomize version
Original file line number Diff line number Diff line change @@ -8,6 +8,47 @@ description: >
88---
99
1010```
11+ Prints the kustomize version
12+
13+ Usage:
14+ kustomize version [flags]
15+
16+ Examples:
1117kustomize version
12- {Version:kustomize/v4.5.2 GitCommit:9091919699baf1c5a5bf71b32ca73a993e98088b BuildDate:2022-02-09T23:26:42Z GoOs:linux GoArch:amd64}
13- ```
18+
19+ Flags:
20+ -h, --help help for version
21+ -o, --output string One of 'yaml' or 'json'.
22+
23+ Global Flags:
24+ --stack-trace print a stack-trace on error
25+ ```
26+
27+ ## Examples
28+
29+ ```
30+ $ kustomize version
31+ v5.0.0
32+
33+ kustomize version --short
34+ Flag --short has been deprecated, and will be removed in the future.
35+ {kustomize/v5.0.0 2023-02-02T16:43:10Z }
36+
37+ $ kustomize version -o yaml
38+ version: kustomize/v5.0.0
39+ gitCommit: 738ca56ccd511a5fcd57b958d6d2019d5b7f2091
40+ buildDate: "2023-02-02T16:43:10Z"
41+ goOs: darwin
42+ goArch: arm64
43+ goVersion: go1.19.5
44+
45+ $ kustomize version -o json
46+ {
47+ "version": "kustomize/v5.0.0",
48+ "gitCommit": "738ca56ccd511a5fcd57b958d6d2019d5b7f2091",
49+ "buildDate": "2023-02-02T16:43:10Z",
50+ "goOs": "darwin",
51+ "goArch": "arm64",
52+ "goVersion": "go1.19.5"
53+ }
54+ ```
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ kustomization file, and referring to this directory as a
3030wants to use it. This encourages modularity and
3131relocatability.
3232
33- To disable this, use v3, and the ` load_restrictor ` flag:
33+ To disable this in v3, use the ` load_restrictor ` flag:
3434
3535```
3636kustomize build --load_restrictor none $target
You can’t perform that action at this time.
0 commit comments