-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrbac.yml
More file actions
31 lines (30 loc) · 909 Bytes
/
rbac.yml
File metadata and controls
31 lines (30 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: phase-kubernetes-operator
rules:
- apiGroups: ["secrets.phase.dev"]
resources: ["phasesecrets"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["secrets", "events"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: phase-kubernetes-operator
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
name: phase-kubernetes-operator
apiGroup: rbac.authorization.k8s.io