From d7e0f64c89e18011630b772d0641a60f5d55afae Mon Sep 17 00:00:00 2001 From: Anshul Ahuja Date: Fri, 28 Apr 2023 20:28:08 +0530 Subject: [PATCH] Remove restorestoragelocation (#6211) Signed-off-by: Anshul Ahuja Co-authored-by: Anshul Ahuja --- config/rbac/role.yaml | 6 ------ pkg/controller/restore_operations_controller.go | 1 - 2 files changed, 7 deletions(-) diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index f42432cbc..6ec17660b 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -184,12 +184,6 @@ rules: - get - patch - update -- apiGroups: - - velero.io - resources: - - restorestoragelocations - verbs: - - get - apiGroups: - velero.io resources: diff --git a/pkg/controller/restore_operations_controller.go b/pkg/controller/restore_operations_controller.go index 8f5945742..100fef214 100644 --- a/pkg/controller/restore_operations_controller.go +++ b/pkg/controller/restore_operations_controller.go @@ -96,7 +96,6 @@ func (r *restoreOperationsReconciler) SetupWithManager(mgr ctrl.Manager) error { // +kubebuilder:rbac:groups=velero.io,resources=restores,verbs=get;list;watch;update // +kubebuilder:rbac:groups=velero.io,resources=restores/status,verbs=get -// +kubebuilder:rbac:groups=velero.io,resources=restorestoragelocations,verbs=get func (r *restoreOperationsReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { log := r.logger.WithField("restore operations for restore", req.String())