kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1 (1)
metadata:
name: aggregate-cron-tabs-admin-edit (2)
labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true" (3)
rbac.authorization.k8s.io/aggregate-to-edit: "true" (4)
rules:
- apiGroups: ["stable.example.com"] (5)
resources: ["crontabs"] (6)
verbs: ["get", "list", "watch", "create", "update", "patch", "delete", "deletecollection"] (7)
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: aggregate-cron-tabs-view (2)
labels:
# Add these permissions to the "view" default role.
rbac.authorization.k8s.io/aggregate-to-view: "true" (8)
rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true" (9)
rules:
- apiGroups: ["stable.example.com"] (5)
resources: ["crontabs"] (6)
verbs: ["get", "list", "watch"] (7)