Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #90 from JAORMX/controllerref
Browse files Browse the repository at this point in the history
Enable manager role to modify operator finalizers
  • Loading branch information
font authored Dec 18, 2020
2 parents 5d0c60c + 4e309a0 commit f1b925d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ spec:
- patch
- update
- watch
- apiGroups:
- operator.gatekeeper.sh
resources:
- gatekeepers/finalizers
verbs:
- delete
- get
- patch
- update
- apiGroups:
- operator.gatekeeper.sh
resources:
Expand Down
9 changes: 9 additions & 0 deletions config/rbac/base/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ rules:
- patch
- update
- watch
- apiGroups:
- operator.gatekeeper.sh
resources:
- gatekeepers/finalizers
verbs:
- delete
- get
- patch
- update
- apiGroups:
- operator.gatekeeper.sh
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/gatekeeper_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ type GatekeeperReconciler struct {
// Gatekeeper Operator RBAC permissions to manager Gatekeeper custom resource
// +kubebuilder:rbac:groups=operator.gatekeeper.sh,resources=gatekeepers,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=operator.gatekeeper.sh,resources=gatekeepers/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=operator.gatekeeper.sh,resources=gatekeepers/finalizers,verbs=delete;get;update;patch

// Gatekeeper Operator RBAC permissions to deploy Gatekeeper. Many of these
// RBAC permissions are needed because the operator must have the permissions
Expand Down

0 comments on commit f1b925d

Please sign in to comment.