apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
items:
- metadata:
name: aggregate-cron-tabs-admin-edit
labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules:
- apiGroups: ["stable.example.com"]
resources: ["crontabs"]
verbs: ["get", "list", "watch", "create",
"update", "patch", "delete", "deletecollection"]
- metadata:
name: aggregate-cron-tabs-view
labels:
# Add these permissions to the "view" default role.
rbac.authorization.k8s.io/aggregate-to-view: "true"
rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true"
rules:
- apiGroups: ["stable.example.com"]
resources: ["crontabs"]
verbs: ["get", "list", "watch"]
apiVersion: rbac.authorization.k8s.io/v1
1
kind: ClusterRole
items:
- 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
- metadata:
name: aggregate-cron-tabs-view
8
labels:
rbac.authorization.k8s.io/aggregate-to-view: "true"
9
rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true"
10
rules:
- apiGroups: ["stable.example.com"]
11
resources: ["crontabs"]
12
verbs: ["get", "list", "watch"]
13
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow