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 { 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 testGoFmt
runTest testGoImports runTest testGoImports
runTest testGoVet runTest testGoVet

View File

@@ -48,11 +48,10 @@ declared here as HERE documents. Download them:
BASE=$DEMO_HOME/base BASE=$DEMO_HOME/base
mkdir -p $BASE mkdir -p $BASE
resources="https://raw.githubusercontent.com/kubernetes/kubectl\ curl -s -o "$BASE/#1.yaml" "https://raw.githubusercontent.com\
/master/cmd/kustomize/demos/data/helloWorld\ /kubernetes-sigs/kustomize\
/master/demos/data/helloWorld\
/{configMap,deployment,kustomization,service}.yaml" /{configMap,deployment,kustomization,service}.yaml"
curl -s $resources -o "$BASE/#1.yaml"
``` ```
Look at the directory: Look at the directory:

View File

@@ -43,11 +43,12 @@ declared here as HERE documents. Download them:
BASE=$DEMO_HOME/base BASE=$DEMO_HOME/base
mkdir -p $BASE mkdir -p $BASE
resources="https://raw.githubusercontent.com/kubernetes/kubectl\ CONTENT="https://raw.githubusercontent.com\
/master/cmd/kustomize/demos/data/ldap/base\ /kubernetes-sigs/kustomize\
/{deployment.yaml,kustomization.yaml,service.yaml,env.startup.txt}" /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: Look at the directory:
@@ -130,14 +131,13 @@ mkdir -p $OVERLAYS/production
#### Staging Kustomization #### Staging Kustomization
Download the staging customization and patch. Download the staging customization and patch.
<!-- @downloadStagingKustomization @test --> <!-- @downloadStagingKustomization @test -->
``` ```
resources="https://raw.githubusercontent.com/kubernetes/kubectl\ curl -s -o "$OVERLAYS/staging/#1" "$CONTENT/overlays/staging\
/master/cmd/kustomize/demos/data/ldap/overlays/staging\
/{config.env,deployment.yaml,kustomization.yaml}" /{config.env,deployment.yaml,kustomization.yaml}"
curl -s $resources -o "$OVERLAYS/staging/#1"
``` ```
The staging customization adds a configMap. The staging customization adds a configMap.
> ```cat $OVERLAYS/staging/kustomization.yaml > ```cat $OVERLAYS/staging/kustomization.yaml
> (...truncated) > (...truncated)
@@ -161,11 +161,8 @@ as well as 2 replica
Download the production customization and patch. Download the production customization and patch.
<!-- @downloadProductionKustomization @test --> <!-- @downloadProductionKustomization @test -->
``` ```
resources="https://raw.githubusercontent.com/kubernetes/kubectl\ curl -s -o "$OVERLAYS/production/#1" "$CONTENT/overlays/production\
/master/cmd/kustomize/demos/data/ldap/overlays/production\
/{deployment.yaml,kustomization.yaml}" /{deployment.yaml,kustomization.yaml}"
curl -s $resources -o "$OVERLAYS/production/#1"
``` ```
The production customization adds 6 replica as well as a consistent disk. The production customization adds 6 replica as well as a consistent disk.

View File

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

View File

@@ -29,10 +29,11 @@ Download them:
<!-- @downloadResources @test --> <!-- @downloadResources @test -->
``` ```
CONTENT="https://raw.githubusercontent.com/kubernetes/kubectl\ CONTENT="https://raw.githubusercontent.com\
/master/cmd/kustomize/demos/data/springboot" /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" "$CONTENT/base/{deployment,service}.yaml"
``` ```