apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: node-maintenance-operator-manager-role
  namespace: testNamespace
  labels:
    node-maintenance-operator: ""
    helm.sh/chart: node-maintenance-operator-2.3.0
    app.kubernetes.io/name: node-maintenance-operator
    app.kubernetes.io/instance: testRelease
    app.kubernetes.io/managed-by: Helm
rules:
- apiGroups:
  - ""
  resources:
  - namespaces
  verbs:
  - get
- apiGroups:
  - ""
  resources:
  - nodes
  verbs:
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - ""
  resources:
  - pods
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - pods/eviction
  verbs:
  - create
- apiGroups:
  - apps
  resources:
  - daemonsets
  - deployments
  - replicasets
  - statefulsets
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - coordination.k8s.io
  resources:
  - leases
  verbs:
  - create
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - monitoring.coreos.com
  resources:
  - servicemonitors
  verbs:
  - create
  - get
- apiGroups:
  - nodemaintenance.medik8s.io
  resources:
  - nodemaintenances
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - nodemaintenance.medik8s.io
  resources:
  - nodemaintenances/finalizers
  verbs:
  - update
- apiGroups:
  - nodemaintenance.medik8s.io
  resources:
  - nodemaintenances/status
  verbs:
  - get
  - patch
  - update
- apiGroups:
  - oauth.openshift.io
  resources:
  - '*'
  verbs:
  - '*'
- apiGroups:
  - policy
  resources:
  - poddisruptionbudgets
  verbs:
  - get
  - list
  - watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: node-maintenance-operator-manager-rolebinding
  namespace: testNamespace
  labels:
    node-maintenance-operator: ""
    helm.sh/chart: node-maintenance-operator-2.3.0
    app.kubernetes.io/name: node-maintenance-operator
    app.kubernetes.io/instance: testRelease
    app.kubernetes.io/managed-by: Helm
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: 'node-maintenance-operator-manager-role'
subjects:
- kind: ServiceAccount
  name: 'node-maintenance-operator-controller-manager'
  namespace: 'testNamespace'
