Skip to content

Commit

Permalink
Update deprecated apiVersions and fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lmm authored and mogren committed Aug 8, 2019
1 parent 45a698d commit a3045f8
Showing 1 changed file with 31 additions and 13 deletions.
44 changes: 31 additions & 13 deletions config/v1.5/calico.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
kind: DaemonSet
apiVersion: extensions/v1beta1
apiVersion: apps/v1
metadata:
name: calico-node
namespace: kube-system
Expand Down Expand Up @@ -154,7 +154,10 @@ metadata:
spec:
scope: Cluster
group: crd.projectcalico.org
version: v1
versions:
- name: v1
served: true
storage: true
names:
kind: FelixConfiguration
plural: felixconfigurations
Expand Down Expand Up @@ -205,7 +208,10 @@ metadata:
spec:
scope: Cluster
group: crd.projectcalico.org
version: v1
versions:
- name: v1
served: true
storage: true
names:
kind: BGPConfiguration
plural: bgpconfigurations
Expand All @@ -219,7 +225,10 @@ metadata:
spec:
scope: Cluster
group: crd.projectcalico.org
version: v1
versions:
- name: v1
served: true
storage: true
names:
kind: BGPPeer
plural: bgppeers
Expand All @@ -233,7 +242,10 @@ metadata:
spec:
scope: Cluster
group: crd.projectcalico.org
version: v1
versions:
- name: v1
served: true
storage: true
names:
kind: IPPool
plural: ippools
Expand Down Expand Up @@ -360,7 +372,7 @@ metadata:
---

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: calico-node
rules:
Expand Down Expand Up @@ -461,7 +473,7 @@ rules:

---

apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: calico-node
Expand All @@ -476,7 +488,7 @@ subjects:

---

apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: calico-typha
Expand All @@ -485,6 +497,9 @@ metadata:
k8s-app: calico-typha
spec:
revisionHistoryLimit: 2
selector:
matchLabels:
k8s-app: calico-typha
template:
metadata:
labels:
Expand Down Expand Up @@ -565,7 +580,7 @@ spec:
k8s-app: calico-typha

---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: typha-cpha
Expand All @@ -580,7 +595,7 @@ subjects:

---

apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: typha-cpha
Expand Down Expand Up @@ -615,14 +630,17 @@ data:
---

apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: calico-typha-horizontal-autoscaler
namespace: kube-system
labels:
k8s-app: calico-typha-autoscaler
spec:
selector:
matchLabels:
k8s-app: calico-typha-autoscaler
replicas: 1
template:
metadata:
Expand Down Expand Up @@ -652,7 +670,7 @@ spec:

---

apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: typha-cpha
Expand All @@ -675,7 +693,7 @@ metadata:

---

apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: typha-cpha
Expand Down

0 comments on commit a3045f8

Please sign in to comment.