This replaces any uses of `rbac.authorization.k8s.io/v1beta1` with `rbac.authorization.k8s.io/v1` affecting RBAC objects like ClusterRole and ClusterRoleBindings, etc. to make it consistent. This is done as some RBAC objects used the `v1beta1` and others already using `v1`. Signed-off-by: Alexander Trost <galexrt@googlemail.com>
28 lines
559 B
YAML
28 lines
559 B
YAML
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: rook-node-annotator
|
|
namespace: rook-ceph
|
|
---
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: rook-node-annotator
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["nodes"]
|
|
verbs: ["patch", "get"]
|
|
---
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: rook-node-annotator
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: rook-node-annotator
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: rook-node-annotator
|
|
namespace: rook-ceph
|