kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: aggregate-component-admin-edit
  labels:
    # Add these permissions to the "admin" and "edit" default roles.
    rbac.authorization.k8s.io/aggregate-to-admin: "true"
    rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules:
  - apiGroups: ["devexp.runtime.redhat.com"]
    resources: ["components"]
    verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
  - apiGroups: ["devexp.runtime.redhat.com"]
    resources: ["links"]
    verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
  - apiGroups: ["devexp.runtime.redhat.com"]
    resources: ["capabilities"]
    verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
