Skip to content

Commit d2d9fec

Browse files
authored
Add permission to create/delete VirtualMachineSnapshot resources (#350)
Signed-off-by: Jorge Padilla <jpadilla@redhat.com>
1 parent 5c67fdd commit d2d9fec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

controllers/virtual_machines_setup.go

+7
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ func (r *SearchReconciler) createVMClusterPermission(ctx context.Context, cluste
245245
},
246246
"verbs": []interface{}{"update"},
247247
},
248+
map[string]interface{}{
249+
"apiGroups": []interface{}{"snapshot.kubevirt.io"},
250+
"resources": []interface{}{
251+
"virtualmachinesnapshots",
252+
},
253+
"verbs": []interface{}{"create", "delete"},
254+
},
248255
},
249256
},
250257
"clusterRoleBinding": map[string]interface{}{

0 commit comments

Comments
 (0)