Files
open-cluster-management/deploy/webhook/clusterrole.yaml
Yang Le 4af2cb0ce9 update readme & makefile
Signed-off-by: Yang Le <yangle@redhat.com>
2021-06-15 11:07:23 +08:00

14 lines
419 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: open-cluster-management:work-webhook
rules:
# Allow manifestwork admission to get/list/watch configmaps
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch"]
# Allow manifestwork admission to create subjectaccessreviews
- apiGroups: ["authorization.k8s.io"]
resources: ["subjectaccessreviews"]
verbs: ["create"]