Skip to content

Commit

Permalink
update nm rbac markers
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrought committed May 27, 2022
1 parent 196337b commit fce1854
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 25 deletions.
16 changes: 8 additions & 8 deletions config/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9969,6 +9969,14 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -10019,14 +10027,6 @@ rules:
- get
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- rolebindings
verbs:
- get
- list
- watch
- apiGroups:
- '*'
resources:
Expand Down
17 changes: 9 additions & 8 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -68,11 +76,4 @@ rules:
- get
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- rolebindings
verbs:
- get
- list
- watch
helm/templates/roles.yaml
2 changes: 1 addition & 1 deletion controllers/notificationmanager_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type NotificationManagerReconciler struct {
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch;
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch

func (r *NotificationManagerReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
ctx := context.Background()
Expand Down
8 changes: 0 additions & 8 deletions helm/templates/clusterroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ rules:
- get
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- rolebindings
verbs:
- get
- list
- watch

---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit fce1854

Please sign in to comment.