migrate Deploymnet from apps/v1beta2 to apps/v1

This commit is contained in:
Naoki Oketani
2019-11-02 09:39:44 +09:00
parent a6a5976304
commit a8ece4b5f7
15 changed files with 19 additions and 19 deletions

View File

@@ -148,7 +148,7 @@ The staging customization adds a configMap.
> ```
as well as 2 replica
> ```cat $OVERLAYS/staging/deployment.yaml
> apiVersion: apps/v1beta2
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> name: ldap
@@ -167,7 +167,7 @@ curl -s -o "$OVERLAYS/production/#1" "$CONTENT/overlays/production\
The production customization adds 6 replica as well as a consistent disk.
> ```cat $OVERLAYS/production/deployment.yaml
> apiVersion: apps/v1beta2
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> name: ldap

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: ldap

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: ldap

View File

@@ -1,5 +1,5 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: ldap

View File

@@ -115,7 +115,7 @@ The output should contain:
> spec:
> ....
> ---
> apiVersion: apps/v1beta2
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> ....
@@ -156,7 +156,7 @@ resources.
<!-- @createPatchFile @testAgainstLatestRelease -->
```
cat <<'EOF' > $DEMO_HOME/persistent-disk.yaml
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: mysql

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: mysql

View File

@@ -105,7 +105,7 @@ steps. Add an environment variable through the patch and add a file to the confi
<!-- @customizeConfigMap @testAgainstLatestRelease -->
```
cat <<EOF >$DEMO_HOME/patch.yaml
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: sbdemo
@@ -216,7 +216,7 @@ cat $DEMO_HOME/memorylimit_patch.yaml
The output contains
> ```
> apiVersion: apps/v1beta2
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> name: sbdemo
@@ -254,7 +254,7 @@ cat $DEMO_HOME/healthcheck_patch.yaml
The output contains
> ```
> apiVersion: apps/v1beta2
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> name: sbdemo

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: sbdemo

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: sbdemo

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: sbdemo

View File

@@ -76,7 +76,7 @@ curl -s -o "$DEMO_HOME/#1.yaml" \
```
The patch has following content
> ```
> apiVersion: apps/v1beta2
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> name: wordpress

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: mysql

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress

View File

@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: wordpress

View File

@@ -76,7 +76,7 @@ curl -s -o "$DEMO_HOME/#1.yaml" \
```
该 patch 内容如下:
> ```yaml
> apiVersion: apps/v1beta2
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> name: wordpress