Skip to content

Commit

Permalink
Merge pull request #5 from navidshariaty/main
Browse files Browse the repository at this point in the history
sa access to create namespaces
  • Loading branch information
navidshariaty authored May 14, 2023
2 parents 28a1065 + cbbcc42 commit cc7c6dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/team_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (t *Team) SetupWebhookWithManager(mgr ctrl.Manager) error {
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

// TODO(user): change verbs to "verbs=create;update;delete" if you want to enable deletion validation.
//+kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;patch;update;watch
//+kubebuilder:rbac:groups="",resources=namespaces,verbs=create;get;list;patch;update;watch
//+kubebuilder:rbac:groups=authorization.k8s.io,resources=localsubjectaccessreviews,verbs=create
//+kubebuilder:webhook:path=/validate-team-snappcloud-io-v1alpha1-team,mutating=false,failurePolicy=fail,sideEffects=None,groups=team.snappcloud.io,resources=teams,verbs=create;update,versions=v1alpha1,name=vteam.kb.io,admissionReviewVersions=v1

Expand Down
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ rules:
resources:
- namespaces
verbs:
- create
- get
- list
- patch
Expand Down

0 comments on commit cc7c6dc

Please sign in to comment.