Skip to content

Commit

Permalink
Merge pull request #190 from projectsyn/fix-rbac
Browse files Browse the repository at this point in the history
Allow `controller-manager` to `list`, `get`, and `watch` TenantTemplates
  • Loading branch information
bastjan authored Aug 9, 2021
2 parents 8a264d7 + 13c87d4 commit ab5af1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,11 @@ rules:
- get
- patch
- update
- apiGroups:
- syn.tools
resources:
- tenanttemplates
verbs:
- get
- list
- watch
1 change: 1 addition & 0 deletions controllers/tenant_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type TenantReconciler struct {
//+kubebuilder:rbac:groups=syn.tools,resources=tenants,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=syn.tools,resources=tenants/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=syn.tools,resources=tenants/finalizers,verbs=update
//+kubebuilder:rbac:groups=syn.tools,resources=tenanttemplates,verbs=get;list;watch

// Reconcile The Controller will requeue the Request to be processed again if the returned error is non-nil or
// Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
Expand Down

0 comments on commit ab5af1a

Please sign in to comment.