Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#3 from monopole/fixStuffDueToKubec…
Browse files Browse the repository at this point in the history
…tlDeletion

fixStuffDueToKubectlDeletion
  • Loading branch information
monopole authored May 15, 2018
2 parents 9fa568e + fea19d0 commit 831bd5d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 24 deletions.
3 changes: 1 addition & 2 deletions bin/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ function testGoTest {
}

function testDemos {
mdrip --mode test --label test ./demos
mdrip --mode test --label test README.md ./demos
}

go install github.com/kubernetes-sigs/kustomize
runTest testGoFmt
runTest testGoImports
runTest testGoVet
Expand Down
7 changes: 3 additions & 4 deletions demos/helloWorld.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ declared here as HERE documents. Download them:
BASE=$DEMO_HOME/base
mkdir -p $BASE
resources="https://raw.githubusercontent.com/kubernetes/kubectl\
/master/cmd/kustomize/demos/data/helloWorld\
curl -s -o "$BASE/#1.yaml" "https://raw.githubusercontent.com\
/kubernetes-sigs/kustomize\
/master/demos/data/helloWorld\
/{configMap,deployment,kustomization,service}.yaml"
curl -s $resources -o "$BASE/#1.yaml"
```

Look at the directory:
Expand Down
21 changes: 9 additions & 12 deletions demos/ldap.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ declared here as HERE documents. Download them:
BASE=$DEMO_HOME/base
mkdir -p $BASE
resources="https://raw.githubusercontent.com/kubernetes/kubectl\
/master/cmd/kustomize/demos/data/ldap/base\
/{deployment.yaml,kustomization.yaml,service.yaml,env.startup.txt}"
CONTENT="https://raw.githubusercontent.com\
/kubernetes-sigs/kustomize\
/master/demos/data/ldap"
curl -s $resources -o "$BASE/#1"
curl -s -o "$BASE/#1" "$CONTENT/base\
/{deployment.yaml,kustomization.yaml,service.yaml,env.startup.txt}"
```

Look at the directory:
Expand Down Expand Up @@ -130,14 +131,13 @@ mkdir -p $OVERLAYS/production
#### Staging Kustomization

Download the staging customization and patch.

<!-- @downloadStagingKustomization @test -->
```
resources="https://raw.githubusercontent.com/kubernetes/kubectl\
/master/cmd/kustomize/demos/data/ldap/overlays/staging\
curl -s -o "$OVERLAYS/staging/#1" "$CONTENT/overlays/staging\
/{config.env,deployment.yaml,kustomization.yaml}"
curl -s $resources -o "$OVERLAYS/staging/#1"
```

The staging customization adds a configMap.
> ```cat $OVERLAYS/staging/kustomization.yaml
> (...truncated)
Expand All @@ -161,11 +161,8 @@ as well as 2 replica
Download the production customization and patch.
<!-- @downloadProductionKustomization @test -->
```
resources="https://raw.githubusercontent.com/kubernetes/kubectl\
/master/cmd/kustomize/demos/data/ldap/overlays/production\
curl -s -o "$OVERLAYS/production/#1" "$CONTENT/overlays/production\
/{deployment.yaml,kustomization.yaml}"
curl -s $resources -o "$OVERLAYS/production/#1"
```

The production customization adds 6 replica as well as a consistent disk.
Expand Down
6 changes: 3 additions & 3 deletions demos/mySql.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Download them:

<!-- @downloadResources @test -->
```
curl -s -o "$DEMO_HOME/#1.yaml" \
"https://raw.githubusercontent.com/kubernetes/kubectl\
/master/cmd/kustomize/demos/data/mySql\
curl -s -o "$DEMO_HOME/#1.yaml" "https://raw.githubusercontent.com\
/kubernetes-sigs/kustomize\
/master/demos/data/mySql\
/{deployment,secret,service}.yaml"
```

Expand Down
7 changes: 4 additions & 3 deletions demos/springboot.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ Download them:

<!-- @downloadResources @test -->
```
CONTENT="https://raw.githubusercontent.com/kubernetes/kubectl\
/master/cmd/kustomize/demos/data/springboot"
CONTENT="https://raw.githubusercontent.com\
/kubernetes-sigs/kustomize\
/master/demos/data/springboot"
curl -s -o "$DEMO_HOME/#1.yaml" \
curl -s -o "$DEMO_HOME/#1.yaml" \
"$CONTENT/base/{deployment,service}.yaml"
```

Expand Down

0 comments on commit 831bd5d

Please sign in to comment.