Skip to content

Commit

Permalink
Add permissions kubebuilder annotation for the user webhook
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Fischer <[email protected]>
  • Loading branch information
simu and glrf committed Mar 29, 2022
1 parent 9f024dc commit 26e3901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webhooks/user_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (

// +kubebuilder:webhook:path=/validate-appuio-io-v1-user,mutating=false,failurePolicy=fail,groups="appuio.io",resources=users,verbs=create;update,versions=v1,name=validate-users.appuio.io,admissionReviewVersions=v1,sideEffects=None

// +kubebuilder:rbac:groups=appuio.io,resources=organizationmembers,verbs=get

// UserValidator holds context for the validating admission webhook for users.appuio.io
type UserValidator struct {
client client.Client
Expand Down

0 comments on commit 26e3901

Please sign in to comment.