Files
open-cluster-management/deploy/webhook/clusterrole.yaml
2020-07-30 19:31:27 +08:00

14 lines
429 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: open-cluster-management:manifestwork-admission
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"]