@@ -6,11 +6,15 @@ kind: ServiceAccount
6
6
metadata :
7
7
name : csi-cinder-controller-sa
8
8
namespace : {{ .Release.Namespace }}
9
+ labels :
10
+ {{- include "cinder-csi.controllerplugin.labels" . | nindent 4 }}
9
11
---
10
12
kind : ClusterRole
11
13
apiVersion : rbac.authorization.k8s.io/v1
12
14
metadata :
13
15
name : csi-attacher-role
16
+ labels :
17
+ {{- include "cinder-csi.labels" . | nindent 4 }}
14
18
rules :
15
19
- apiGroups : [""]
16
20
resources : ["persistentvolumes"]
@@ -32,6 +36,8 @@ kind: ClusterRoleBinding
32
36
apiVersion : rbac.authorization.k8s.io/v1
33
37
metadata :
34
38
name : csi-attacher-binding
39
+ labels :
40
+ {{- include "cinder-csi.labels" . | nindent 4 }}
35
41
subjects :
36
42
- kind : ServiceAccount
37
43
name : csi-cinder-controller-sa
@@ -46,6 +52,8 @@ kind: ClusterRole
46
52
apiVersion : rbac.authorization.k8s.io/v1
47
53
metadata :
48
54
name : csi-provisioner-role
55
+ labels :
56
+ {{- include "cinder-csi.labels" . | nindent 4 }}
49
57
rules :
50
58
- apiGroups : [""]
51
59
resources : ["persistentvolumes"]
@@ -79,6 +87,8 @@ kind: ClusterRoleBinding
79
87
apiVersion : rbac.authorization.k8s.io/v1
80
88
metadata :
81
89
name : csi-provisioner-binding
90
+ labels :
91
+ {{- include "cinder-csi.labels" . | nindent 4 }}
82
92
subjects :
83
93
- kind : ServiceAccount
84
94
name : csi-cinder-controller-sa
@@ -93,6 +103,8 @@ kind: ClusterRole
93
103
apiVersion : rbac.authorization.k8s.io/v1
94
104
metadata :
95
105
name : csi-snapshotter-role
106
+ labels :
107
+ {{- include "cinder-csi.labels" . | nindent 4 }}
96
108
rules :
97
109
- apiGroups : [""]
98
110
resources : ["events"]
@@ -121,6 +133,8 @@ kind: ClusterRoleBinding
121
133
apiVersion : rbac.authorization.k8s.io/v1
122
134
metadata :
123
135
name : csi-snapshotter-binding
136
+ labels :
137
+ {{- include "cinder-csi.labels" . | nindent 4 }}
124
138
subjects :
125
139
- kind : ServiceAccount
126
140
name : csi-cinder-controller-sa
@@ -134,6 +148,8 @@ kind: ClusterRole
134
148
apiVersion : rbac.authorization.k8s.io/v1
135
149
metadata :
136
150
name : csi-resizer-role
151
+ labels :
152
+ {{- include "cinder-csi.labels" . | nindent 4 }}
137
153
rules :
138
154
# The following rule should be uncommented for plugins that require secrets
139
155
# for provisioning.
@@ -163,6 +179,8 @@ kind: ClusterRoleBinding
163
179
apiVersion : rbac.authorization.k8s.io/v1
164
180
metadata :
165
181
name : csi-resizer-binding
182
+ labels :
183
+ {{- include "cinder-csi.labels" . | nindent 4 }}
166
184
subjects :
167
185
- kind : ServiceAccount
168
186
name : csi-cinder-controller-sa
0 commit comments