mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
fixStuffDueToKubectlDeletion
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user