change deployment version

Signed-off-by: dev-chulbuji <dev.chulbuji@gmail.com>
pull/5772/head
dev-chulbuji 6 years ago
parent 9fb19967ba
commit 3d487547f9

@ -125,7 +125,7 @@ func Deployment(opts *Options) (*v1beta1.Deployment, error) {
}
dep.TypeMeta = metav1.TypeMeta{
Kind: "Deployment",
APIVersion: "extensions/v1beta1",
APIVersion: "apps/v1",
}
return dep, nil
}

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
# This uses a "fullname" template (see _helpers)

@ -280,7 +280,7 @@ helm init --override metadata.annotations."deployment\.kubernetes\.io/revision"=
Output:
```
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
@ -337,7 +337,7 @@ The Tiller installation is skipped and the manifest is output to stdout
in JSON format.
```
"apiVersion": "extensions/v1beta1",
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"creationTimestamp": null,

@ -27,7 +27,7 @@ import (
"time"
"k8s.io/api/core/v1"
apiextv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
apiextv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiapps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
@ -700,7 +700,7 @@ spec:
tier: backend
role: master
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-master
@ -740,7 +740,7 @@ spec:
tier: backend
role: slave
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-slave
@ -780,7 +780,7 @@ spec:
app: guestbook
tier: frontend
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend

Loading…
Cancel
Save