apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: metering-admin
rules:
- apiGroups: ["metering.openshift.io"]
  resources: ["*"]
  verbs: ["*"]

---

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: metering-viewer
rules:
- apiGroups: ["metering.openshift.io"]
  resources: ["*"]
  verbs: ["get", "list", "watch"]

---

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: reporting-admin
rules:
- apiGroups: ["metering.openshift.io"]
  resources:
  - reports
  - reports/export
  - reportqueries
  - reportdatasources
  - prestotables
  - storagelocations
  verbs: ["*"]

---

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: reporting-viewer
rules:
- apiGroups: ["metering.openshift.io"]
  resources:
  - reports
  - reports/export
  - reportqueries
  - reportdatasources
  - prestotables
  - storagelocations
  verbs: ["get", "list", "watch"]

---

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: report-exporter
rules:
- apiGroups: ["metering.openshift.io"]
  resources:
  - reports/export
  verbs: ["get"]
