mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
Merge pull request #73 from guineveresaenger/example-docfix
Clarifies hello-world example documentation
This commit is contained in:
@@ -112,6 +112,12 @@ sed -i 's/app: hello/app: my-hello/' \
|
|||||||
$BASE/kustomization.yaml
|
$BASE/kustomization.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On a Mac, use:
|
||||||
|
```
|
||||||
|
sed -i '' $pattern $file
|
||||||
|
```
|
||||||
|
to get in-place editing.
|
||||||
|
|
||||||
See the effect:
|
See the effect:
|
||||||
<!-- @checkLabel @test -->
|
<!-- @checkLabel @test -->
|
||||||
```
|
```
|
||||||
@@ -397,7 +403,14 @@ the server will use:
|
|||||||
sed -i 's/pineapple/kiwi/' $OVERLAYS/staging/map.yaml
|
sed -i 's/pineapple/kiwi/' $OVERLAYS/staging/map.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Run kustomize again to see the new names:
|
See the new greeting:
|
||||||
|
|
||||||
|
```
|
||||||
|
kustomize build $OVERLAYS/staging |\
|
||||||
|
grep -B 2 -A 3 kiwi
|
||||||
|
```
|
||||||
|
|
||||||
|
Run kustomize again to see the new configMap names:
|
||||||
|
|
||||||
<!-- @grepStagingName @test -->
|
<!-- @grepStagingName @test -->
|
||||||
```
|
```
|
||||||
@@ -413,7 +426,8 @@ uses the map:
|
|||||||
<!-- @countHashes @test -->
|
<!-- @countHashes @test -->
|
||||||
```
|
```
|
||||||
test 3 == \
|
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
|
Applying these resources to the cluster will result in
|
||||||
|
|||||||
Reference in New Issue
Block a user