Skip to content

Commit

Permalink
Fix role: apiGroups is required (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan authored Mar 11, 2022
1 parent a743334 commit a025cfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ metadata:
creationTimestamp: null
name: appuio-keycloak-adapter
rules:
- resources:
- apiGroups:
- ""
resources:
- events
verbs:
- create
Expand Down
2 changes: 1 addition & 1 deletion controllers/organization_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var orgFinalizer = "keycloak-adapter.vshn.net/finalizer"
//+kubebuilder:rbac:groups=appuio.io,resources=organizationmembers/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=appuio.io,resources=organizationmembers/finalizers,verbs=update

//+kubebuilder:rbac:groups=,resources=events,verbs=create;patch
//+kubebuilder:rbac:groups="",resources=events,verbs=create;patch

// Reconcile reacts on changes of Organizations and OrganizationMembers and mirrors these changes to groups in Keycloak
func (r *OrganizationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
Expand Down

0 comments on commit a025cfe

Please sign in to comment.