Skip to content

Commit

Permalink
Allow bypassing user name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed May 17, 2023
1 parent d2d36ae commit 84de744
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ rules:
- get
- patch
- update
- apiGroups:
- rbac.appuio.io
resources:
- users
verbs:
- create
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
3 changes: 3 additions & 0 deletions controllers/periodic_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ type PeriodicSyncer struct {
//+kubebuilder:rbac:groups=appuio.io,resources=organizationmembers,verbs=create
//+kubebuilder:rbac:groups=appuio.io,resources=teams,verbs=create
//+kubebuilder:rbac:groups=appuio.io,resources=users,verbs=create
// Allows managing other users than the one used by the controller itself
// See https://github.com/appuio/control-api/pull/163
//+kubebuilder:rbac:groups=rbac.appuio.io,resources=users,verbs=create
//+kubebuilder:rbac:groups=organization.appuio.io;rbac.appuio.io,resources=organizations,verbs=create
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=subjects;rolebindings,verbs=*

Expand Down

0 comments on commit 84de744

Please sign in to comment.