Skip to content

Commit

Permalink
Allow the Hub to patch pods (#721)
Browse files Browse the repository at this point in the history
This is required for the BuildSignEvents reconciler to remove the
finalizer.

Co-authored-by: Quentin Barrand <quba@redhat.com>
  • Loading branch information
k8s-infra-cherrypick-robot and qbarrand authored Jan 31, 2024
1 parent 515aa59 commit a468303
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/rbac-hub/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ rules:
- create
- delete
- list
- patch
- watch
- apiGroups:
- ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type ManagedClusterModuleReconciler struct {
//+kubebuilder:rbac:groups=hub.kmm.sigs.x-k8s.io,resources=managedclustermodules/finalizers,verbs=update
//+kubebuilder:rbac:groups=work.open-cluster-management.io,resources=manifestworks,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=cluster.open-cluster-management.io,resources=managedclusters,verbs=get;list;watch
//+kubebuilder:rbac:groups=core,resources=pods,verbs=create;list;watch;delete
//+kubebuilder:rbac:groups=core,resources=pods,verbs=create;delete;list;patch;watch
//+kubebuilder:rbac:groups="core",resources=secrets,verbs=get;list;watch
//+kubebuilder:rbac:groups="core",resources=configmaps,verbs=get;list;watch

Expand Down

0 comments on commit a468303

Please sign in to comment.