apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  labels:
    app.kubernetes.io/component: storage
    app.kubernetes.io/managed-by: cdi-operator
    cdi.kubevirt.io: ""
    prometheus.cdi.kubevirt.io: "true"
  name: cdi-monitoring
  namespace: "{{ namespace }}"
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: cdi-monitoring
subjects:
  - kind: ServiceAccount
    name: prometheus-k8s
    namespace: monitoring