File tree 1 file changed +40
-0
lines changed
pkg/operator/resources/cluster
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,18 @@ func getAdminPolicyRules() []rbacv1.PolicyRule {
75
75
"*" ,
76
76
},
77
77
},
78
+ {
79
+ APIGroups : []string {
80
+ "forklift.cdi.kubevirt.io" ,
81
+ },
82
+ Resources : []string {
83
+ "ovirtvolumepopulators" ,
84
+ "openstackvolumepopulators" ,
85
+ },
86
+ Verbs : []string {
87
+ "*" ,
88
+ },
89
+ },
78
90
}
79
91
}
80
92
@@ -107,6 +119,20 @@ func getViewPolicyRules() []rbacv1.PolicyRule {
107
119
"watch" ,
108
120
},
109
121
},
122
+ {
123
+ APIGroups : []string {
124
+ "forklift.cdi.kubevirt.io" ,
125
+ },
126
+ Resources : []string {
127
+ "ovirtvolumepopulators" ,
128
+ "openstackvolumepopulators" ,
129
+ },
130
+ Verbs : []string {
131
+ "get" ,
132
+ "list" ,
133
+ "watch" ,
134
+ },
135
+ },
110
136
{
111
137
APIGroups : []string {
112
138
"cdi.kubevirt.io" ,
@@ -137,6 +163,20 @@ func createConfigReaderClusterRole(name string) *rbacv1.ClusterRole {
137
163
"watch" ,
138
164
},
139
165
},
166
+ {
167
+ APIGroups : []string {
168
+ "forklift.cdi.kubevirt.io" ,
169
+ },
170
+ Resources : []string {
171
+ "ovirtvolumepopulators" ,
172
+ "openstackvolumepopulators" ,
173
+ },
174
+ Verbs : []string {
175
+ "get" ,
176
+ "list" ,
177
+ "watch" ,
178
+ },
179
+ },
140
180
}
141
181
142
182
return utils .ResourceBuilder .CreateClusterRole (name , rules )
You can’t perform that action at this time.
0 commit comments