# Copyright Contributors to the Open Cluster Management project

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    rbac.authorization.k8s.io/aggregate-to-view: "true"
  name: multicluster-engine:assisted-installer:view-aggregate
rules:
- apiGroups: ["submarineraddon.open-cluster-management.io"]
  resources: ["submarinerconfigs", "submarinerconfigs/status"]
  verbs: ["get", "list", "watch"]
- apiGroups: [ "metal3.io" ]
  resources: [ "baremetalhosts" ]
  verbs: ["get", "list", "watch"]
- apiGroups: [ "agent-install.openshift.io" ]
  resources: [ "agents", "infraenvs" ]
  verbs: ["get", "list", "watch"]
- apiGroups: [ "extensions.hive.openshift.io" ]
  resources: [ "agentclusterinstalls" ]
  verbs: ["get", "list", "watch"]
