Skip to content

Commit

Permalink
fix rbac permissin for services
Browse files Browse the repository at this point in the history
  • Loading branch information
koba1t committed Jan 24, 2020
1 parent 57b7197 commit 65edfb9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- apps
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/userland_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type UserlandReconciler struct {
// +kubebuilder:rbac:groups=esc.k06.in,resources=userlands/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=esc.k06.in,resources=templates,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="",resources=events,verbs=create;patch

// Reconcile loop for Userland resource
Expand Down

0 comments on commit 65edfb9

Please sign in to comment.