From a8ece4b5f764e82b5087cf37848fd8d85044ad3b Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Sat, 2 Nov 2019 09:39:44 +0900 Subject: [PATCH] migrate Deploymnet from apps/v1beta2 to apps/v1 --- examples/ldap/README.md | 4 ++-- examples/ldap/base/deployment.yaml | 2 +- examples/ldap/overlays/production/deployment.yaml | 2 +- examples/ldap/overlays/staging/deployment.yaml | 2 +- examples/mySql/README.md | 4 ++-- examples/mySql/deployment.yaml | 2 +- examples/springboot/README.md | 6 +++--- examples/springboot/base/deployment.yaml | 2 +- .../springboot/overlays/production/healthcheck_patch.yaml | 2 +- .../springboot/overlays/production/memorylimit_patch.yaml | 2 +- examples/wordpress/README.md | 2 +- examples/wordpress/mysql/deployment.yaml | 2 +- examples/wordpress/patch.yaml | 2 +- examples/wordpress/wordpress/deployment.yaml | 2 +- examples/zh/vars.md | 2 +- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/examples/ldap/README.md b/examples/ldap/README.md index af28ce2f2..3e529d42d 100644 --- a/examples/ldap/README.md +++ b/examples/ldap/README.md @@ -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 diff --git a/examples/ldap/base/deployment.yaml b/examples/ldap/base/deployment.yaml index 9570f5a3d..c98993ff0 100644 --- a/examples/ldap/base/deployment.yaml +++ b/examples/ldap/base/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: ldap diff --git a/examples/ldap/overlays/production/deployment.yaml b/examples/ldap/overlays/production/deployment.yaml index 3e535c492..a0d608339 100644 --- a/examples/ldap/overlays/production/deployment.yaml +++ b/examples/ldap/overlays/production/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: ldap diff --git a/examples/ldap/overlays/staging/deployment.yaml b/examples/ldap/overlays/staging/deployment.yaml index 792f4d0a2..074f813cd 100644 --- a/examples/ldap/overlays/staging/deployment.yaml +++ b/examples/ldap/overlays/staging/deployment.yaml @@ -1,5 +1,5 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: ldap diff --git a/examples/mySql/README.md b/examples/mySql/README.md index 780584054..55c8e4305 100644 --- a/examples/mySql/README.md +++ b/examples/mySql/README.md @@ -115,7 +115,7 @@ The output should contain: > spec: > .... > --- -> apiVersion: apps/v1beta2 +> apiVersion: apps/v1 > kind: Deployment > metadata: > .... @@ -156,7 +156,7 @@ resources. ``` 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 diff --git a/examples/mySql/deployment.yaml b/examples/mySql/deployment.yaml index 6aa7bc72b..d8c441944 100644 --- a/examples/mySql/deployment.yaml +++ b/examples/mySql/deployment.yaml @@ -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 diff --git a/examples/springboot/README.md b/examples/springboot/README.md index 11d831662..e5545621e 100644 --- a/examples/springboot/README.md +++ b/examples/springboot/README.md @@ -105,7 +105,7 @@ steps. Add an environment variable through the patch and add a file to the confi ``` cat <$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 diff --git a/examples/springboot/base/deployment.yaml b/examples/springboot/base/deployment.yaml index 62fb2e343..419ded37b 100644 --- a/examples/springboot/base/deployment.yaml +++ b/examples/springboot/base/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: sbdemo diff --git a/examples/springboot/overlays/production/healthcheck_patch.yaml b/examples/springboot/overlays/production/healthcheck_patch.yaml index c8a0cfaec..596fd30e4 100644 --- a/examples/springboot/overlays/production/healthcheck_patch.yaml +++ b/examples/springboot/overlays/production/healthcheck_patch.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: sbdemo diff --git a/examples/springboot/overlays/production/memorylimit_patch.yaml b/examples/springboot/overlays/production/memorylimit_patch.yaml index a46d33311..280adca6e 100644 --- a/examples/springboot/overlays/production/memorylimit_patch.yaml +++ b/examples/springboot/overlays/production/memorylimit_patch.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: sbdemo diff --git a/examples/wordpress/README.md b/examples/wordpress/README.md index 72fffb5cd..cdbfcf5a0 100644 --- a/examples/wordpress/README.md +++ b/examples/wordpress/README.md @@ -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 diff --git a/examples/wordpress/mysql/deployment.yaml b/examples/wordpress/mysql/deployment.yaml index 6aa7bc72b..d8c441944 100644 --- a/examples/wordpress/mysql/deployment.yaml +++ b/examples/wordpress/mysql/deployment.yaml @@ -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 diff --git a/examples/wordpress/patch.yaml b/examples/wordpress/patch.yaml index b4d06c206..ee606a96e 100644 --- a/examples/wordpress/patch.yaml +++ b/examples/wordpress/patch.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: wordpress diff --git a/examples/wordpress/wordpress/deployment.yaml b/examples/wordpress/wordpress/deployment.yaml index 07e055239..6f9dc03b6 100644 --- a/examples/wordpress/wordpress/deployment.yaml +++ b/examples/wordpress/wordpress/deployment.yaml @@ -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 diff --git a/examples/zh/vars.md b/examples/zh/vars.md index 4b48e3d1b..173eb4135 100644 --- a/examples/zh/vars.md +++ b/examples/zh/vars.md @@ -76,7 +76,7 @@ curl -s -o "$DEMO_HOME/#1.yaml" \ ``` 该 patch 内容如下: > ```yaml -> apiVersion: apps/v1beta2 +> apiVersion: apps/v1 > kind: Deployment > metadata: > name: wordpress