Skip to content

Commit

Permalink
Fix RBAC permissions for adding/removing finalizers
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Dec 7, 2023
1 parent 724f001 commit c24ff4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ rules:
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- syn.tools
Expand Down
2 changes: 1 addition & 1 deletion controllers/cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type ClusterReconciler struct {
KeycloakClientIgnorePaths []string
}

//+kubebuilder:rbac:groups=syn.tools,resources=clusters,verbs=get;list;watch
//+kubebuilder:rbac:groups=syn.tools,resources=clusters,verbs=get;list;watch;update;patch
//+kubebuilder:rbac:groups=syn.tools,resources=clusters/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=syn.tools,resources=clusters/finalizers,verbs=update

Expand Down

0 comments on commit c24ff4b

Please sign in to comment.