-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrole.yaml
95 lines (93 loc) · 1.44 KB
/
role.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: manager-role
rules:
##
## Base operator rules
##
# We need to get namespaces so the operator can read namespaces to ensure they exist
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
# We need to manage Helm release secrets
- apiGroups:
- ""
resources:
- secrets
verbs:
- "*"
# We need to create events on CRs about things happening during reconciliation
- apiGroups:
- ""
resources:
- events
verbs:
- create
##
## Rules for charts.quay.io/v1alpha1, Kind: DirectpvChart
##
- apiGroups:
- charts.quay.io
resources:
- directpvcharts
- directpvcharts/status
- directpvcharts/finalizers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- verbs:
- "*"
apiGroups:
- ""
resources:
- "namespaces"
- verbs:
- "*"
apiGroups:
- "storage.k8s.io"
resources:
- "csidrivers"
- "storageclasses"
- verbs:
- "*"
apiGroups:
- "apiextensions.k8s.io"
resources:
- "customresourcedefinitions"
- verbs:
- "*"
apiGroups:
- "rbac.authorization.k8s.io"
resources:
- "clusterrolebindings"
- "clusterroles"
- verbs:
- "*"
apiGroups:
- ""
resources:
- "serviceaccounts"
- verbs:
- "*"
apiGroups:
- "rbac.authorization.k8s.io"
resources:
- "rolebindings"
- "roles"
- verbs:
- "*"
apiGroups:
- "apps"
resources:
- "daemonsets"
- "deployments"
#+kubebuilder:scaffold:rules