Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Update deprecated api for 1.16 (#133)
Browse files Browse the repository at this point in the history
* fix typo

* Change from apps/v1beta deployment  deprecated api to apps/v1

* Fixed docs deployment manifests
  • Loading branch information
yutachaos committed Jun 11, 2020
1 parent daffc03 commit ec39f06
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,15 @@ patches:
mymesh.yaml
```yaml
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: appmesh-inject
namespace: appmesh-system
spec:
selector:
matchLabels:
name: appmesh-inject
template:
spec:
containers:
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ The mesh name provided at install time can be overridden with the `appmesh.k8s.a

For example:
```yaml
apiVersion: appsv1
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: my-cool-deployment
spec:
selector:
matchLabels:
name: appmesh-inject
template:
metadata:
annotations:
Expand Down
5 changes: 4 additions & 1 deletion deploy/inject.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
selector:
name: appmesh-inject
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: appmesh-inject
Expand All @@ -52,6 +52,9 @@ metadata:
name: appmesh-inject
spec:
replicas: 1
selector:
matchLabels:
name: appmesh-inject
template:
metadata:
name: appmesh-inject
Expand Down
5 changes: 4 additions & 1 deletion kustomize/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: appmesh-inject
Expand All @@ -8,6 +8,9 @@ metadata:
name: appmesh-inject
spec:
replicas: 1
selector:
matchLabels:
name: appmesh-inject
template:
metadata:
name: appmesh-inject
Expand Down

0 comments on commit ec39f06

Please sign in to comment.