doc: update example to use tag v3.3.1

Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
This commit is contained in:
Craig Rodrigues
2023-08-10 20:47:33 -07:00
committed by Craig Rodrigues
parent ace2d53b18
commit bee2e5f50c

View File

@@ -19,15 +19,15 @@ following query string parameters can also be specified:
submodules or not submodules or not
For example, For example,
`https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6` `https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?timeout=120&ref=v3.3.1`
will essentially clone the git repo via HTTPS, checkout `v1.0.6` and run will essentially clone the git repo via HTTPS, checkout `v3.3.1` and run
`kustomize build` inside the `examples/multibases/dev` directory. `kustomize build` inside the `examples/multibases/dev` directory.
SSH clones are also supported either with `git@github.com:owner/repo` or SSH clones are also supported either with `git@github.com:owner/repo` or
`ssh://git@github.com/owner/repo` URLs. `ssh://git@github.com/owner/repo` URLs.
`file:///` clones are supported. For `file:///` clones are supported. For
example, `file:///path/to/repo//someSubdir?ref=v1.0.6`, references the absolute example, `file:///path/to/repo//someSubdir?ref=v3.3.1`, references the absolute
path to the repo at `/path/to/repo`, and a kustomization directory path to the repo at `/path/to/repo`, and a kustomization directory
at `someSubdir` within that repo. `//` to delimits the root of the repo. at `someSubdir` within that repo. `//` to delimits the root of the repo.
Kustomize will clone the repo to a temporary directory and do a clean checkout Kustomize will clone the repo to a temporary directory and do a clean checkout
@@ -48,7 +48,7 @@ one pod in the output:
<!-- @remoteOverlayBuild @testAgainstLatestRelease --> <!-- @remoteOverlayBuild @testAgainstLatestRelease -->
``` ```
target="https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6" target="https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev/?timeout=120&ref=v3.3.1"
test 1 == \ test 1 == \
$(kustomize build $target | grep dev-myapp-pod | wc -l); \ $(kustomize build $target | grep dev-myapp-pod | wc -l); \
echo $? echo $?
@@ -60,7 +60,7 @@ someone who wants to send them all at the same time):
<!-- @remoteBuild @testAgainstLatestRelease --> <!-- @remoteBuild @testAgainstLatestRelease -->
``` ```
target="https://github.com/kubernetes-sigs/kustomize//examples/multibases?ref=v1.0.6" target="https://github.com/kubernetes-sigs/kustomize//examples/multibases?timeout=120&ref=v3.3.1"
test 3 == \ test 3 == \
$(kustomize build $target | grep cluster-a-.*-myapp-pod | wc -l); \ $(kustomize build $target | grep cluster-a-.*-myapp-pod | wc -l); \
echo $? echo $?
@@ -74,7 +74,7 @@ DEMO_HOME=$(mktemp -d)
cat <<EOF >$DEMO_HOME/kustomization.yaml cat <<EOF >$DEMO_HOME/kustomization.yaml
resources: resources:
- https://github.com/kubernetes-sigs/kustomize//examples/multibases?ref=v1.0.6 - https://github.com/kubernetes-sigs/kustomize//examples/multibases?timeout=120&ref=v3.3.1
namePrefix: remote- namePrefix: remote-
EOF EOF
``` ```