# permissions for end users to edit components.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: component-editor-role
  labels:
      rbac.authorization.k8s.io/aggregate-to-edit: 'true'
      rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rules:
- apiGroups:
  - appstudio.redhat.com
  resources:
  - components
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - appstudio.redhat.com
  resources:
  - components/status
  verbs:
  - get
