mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Clarifies hello-world example documentation
The example documentation had a few minor discrepancies between commands suggested and expected outcomes. This pull request addresses those, making it easier for folks to use the hello-world demo.
This commit is contained in:
@@ -112,6 +112,11 @@ sed -i 's/app: hello/app: my-hello/' \
|
||||
$BASE/kustomization.yaml
|
||||
```
|
||||
|
||||
*Note* `sed` works differently on different systems. On MacOS, for example, use this command instead:
|
||||
```
|
||||
sed -i '' 's/pineapple/kiwi/' $OVERLAYS/staging/map.yaml
|
||||
```
|
||||
|
||||
See the effect:
|
||||
<!-- @checkLabel @test -->
|
||||
```
|
||||
@@ -402,7 +407,7 @@ Run kustomize again to see the new names:
|
||||
<!-- @grepStagingName @test -->
|
||||
```
|
||||
kustomize build $OVERLAYS/staging |\
|
||||
grep -B 8 -A 1 staging-the-map
|
||||
kustomize build $OVERLAYS/staging | grep -B 2 -A 3 kiwi
|
||||
```
|
||||
|
||||
Confirm that the change in configMap content resulted
|
||||
@@ -413,7 +418,7 @@ uses the map:
|
||||
<!-- @countHashes @test -->
|
||||
```
|
||||
test 3 == \
|
||||
$(kustomize build $OVERLAYS/staging | grep khk45ktkd9 | wc -l)
|
||||
$(kustomize build $OVERLAYS/staging | grep khk45ktkd9 | wc -l); echo $?
|
||||
```
|
||||
|
||||
Applying these resources to the cluster will result in
|
||||
|
||||
Reference in New Issue
Block a user