fixStuffDueToKubectlDeletion

This commit is contained in:
Jeffrey Regan
2018-05-15 11:57:16 -07:00
parent 9fa568eda5
commit fea19d0f00
5 changed files with 20 additions and 24 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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:
@@ -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)
@@ -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.

View File

@@ -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"
```

View File

@@ -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"
```