Skip to content

Commit

Permalink
Give default organization controller permissions to create/update arb…
Browse files Browse the repository at this point in the history
…itrary users
  • Loading branch information
simu committed Sep 25, 2024
1 parent 9fb0488 commit 2654189
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 2654189

Please sign in to comment.