Merge pull request #272 from monopole/fixdemo

fix demo
This commit is contained in:
Jeff Regan 2018-02-09 13:56:15 -08:00 committed by GitHub
commit 76f41afe2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 8 deletions

View File

@ -17,7 +17,7 @@ Add a _namePrefix_ specification to the manifest:
<!-- @addNamePrefix @test --> <!-- @addNamePrefix @test -->
``` ```
cd $TUT_APP cd $TUT_APP
kinflate setnameprefix acme- kinflate set nameprefix acme-
``` ```
Run it: Run it:

View File

@ -53,7 +53,7 @@ Add it to the manifest:
<!-- @addResource @test --> <!-- @addResource @test -->
``` ```
kinflate addresource configMap.yaml kinflate add resource configMap.yaml
``` ```
<!-- @showItAgain @test --> <!-- @showItAgain @test -->
@ -65,7 +65,7 @@ Add one that isn't there:
<!-- @addNoResource @test --> <!-- @addNoResource @test -->
``` ```
kinflate addresource does_not_exist.yaml kinflate add resource does_not_exist.yaml
``` ```
Try to reinit Try to reinit

View File

@ -17,6 +17,8 @@ TUT_DIR=$HOME/kinflate_demo
mkdir -p $TUT_DIR mkdir -p $TUT_DIR
``` ```
Download the app:
<!-- @downloadTutorialHelloApp @test --> <!-- @downloadTutorialHelloApp @test -->
``` ```
cd $TUT_DIR cd $TUT_DIR
@ -24,20 +26,34 @@ git clone https://github.com/kinflate/tuthello
cd tuthello cd tuthello
``` ```
Customize the base application by specifying a prefix that will be applied to
all resource names:
<!-- @customizeApp @test --> <!-- @customizeApp @test -->
``` ```
kinflate setnameprefix acme- kinflate set nameprefix acme-
``` ```
Confirm that the edit happened:
<!-- @confirmEdit @test --> <!-- @confirmEdit @test -->
``` ```
grep namePrefix Kube-manifest.yaml grep --context=3 namePrefix Kube-manifest.yaml
``` ```
<!-- @applyToCluster @test --> Confirm that the prefix appears in the output:
<!-- @confirmResourceNames @test -->
```
kinflate inflate -f . | grep --context=3 acme-
```
Optionally apply to a cluster:
<!-- @applyToCluster -->
``` ```
kinflate inflate -f . | kubectl apply -f - kinflate inflate -f . | kubectl apply -f -
``` ```
This fork of the app repository could be This fork of the app repository could be committed to a private repo. Rebase as
committed to a private repo. Rebase as desired. desired.