apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ascend-operator-manager-role
rules:
- apiGroups: [ "" ]
resources: [ "events" ]
verbs: [ "create", "patch", "list", "watch", "delete" ]
- apiGroups: [ "" ]
resources: [ "pods" ]
verbs: [ "create", "list", "watch", "delete", "get", "collectionCreate", "update" ]
- apiGroups: [ "" ]
resources: [ "services" ]
verbs: [ "create", "list", "watch", "delete", "get" ]
- apiGroups: [ "" ]
resources: [ "configmaps" ]
verbs: [ "create", "list", "watch", "delete", "get", "update" ]
- apiGroups: [ "scheduling.volcano.sh" ]
resources: [ "podgroups"]
verbs: [ "create", "list", "watch", "delete", "get", "update" ]
- apiGroups: [ "scheduling.volcano.sh" ]
resources: [ "queues", "queue/status" ]
verbs: [ "get", "list", "watch"]
- apiGroups: [ "scheduling.volcano.sh" ]
resources: [ "priorityclasses" ]
verbs: [ "list", "watch"]
- apiGroups: [ "mindxdl.gitee.com" ]
resources: [ "ascendjobs" ]
verbs: [ "create", "list", "watch", "delete", "get", "patch", "update" ]
- apiGroups: [ "mindxdl.gitee.com" ]
resources: [ "ascendjobs/finalizers" ]
verbs: [ "update" ]
- apiGroups: [ "mindxdl.gitee.com" ]
resources: [ "ascendjobs/status" ]
verbs: [ "get", "patch", "update" ]
- apiGroups: [ "batch.volcano.sh" ]
resources: [ "jobs" ]
verbs: [ "get", "watch", "list" ]
- apiGroups: [ "apps" ]
resources: [ "deployments", "replicasets","statefulsets" ]
verbs: [ "get", "watch", "list" ]