# permissions for end users to edit artifactoryrepositories.
# NOTE: should only be granted to platform Admin groups for repo creation/management
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: project-editor-role
  labels:
    rbac.authorization.k8s.io/aggregate-to-admin: "true"
    rbac.authorization.k8s.io/aggregate-to-edit: "true"
    rbac.devops.gov.bc.ca/aggregate-to-art-objects: "true"
rules:
- apiGroups:
  - artifactory.devops.gov.bc.ca
  resources:
  - artifactoryprojects
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
- apiGroups:
  - artifactory.devops.gov.bc.ca
  resources:
  - artifactoryprojects/status
  verbs:
  - get
