Skip to content

Commit

Permalink
Merge pull request #212 from appuio/fix/default-org-controller-rbac
Browse files Browse the repository at this point in the history
Fix default organization controller RBAC
  • Loading branch information
simu authored Sep 26, 2024
2 parents 9fb0488 + 2654189 commit fd065b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions config/rbac/controller/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ rules:
- get
- patch
- update
- apiGroups:
- rbac.appuio.io
resources:
- users
verbs:
- create
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
3 changes: 2 additions & 1 deletion controllers/default_organization_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ type DefaultOrganizationReconciler struct {
}

//+kubebuilder:rbac:groups=appuio.io,resources=organizationmembers,verbs=get;list;watch
//+kubebuilder:rbac:groups=appuio.io,resources=users,verbs=get;list;watch;update;patch
//+kubebuilder:rbac:groups=appuio.io,resources=users,verbs=get;list;watch
//+kubebuilder:rbac:groups=rbac.appuio.io,resources=users,verbs=create;update;patch
//+kubebuilder:rbac:groups=appuio.io,resources=users/status,verbs=get

// Reconcile reacts on changes of memberships and sets members' default organization if appropriate
Expand Down

0 comments on commit fd065b5

Please sign in to comment.