Skip to content

Commit

Permalink
fix: add missing rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
cjc7373 committed Jan 22, 2025
1 parent 15563c0 commit 2ac7b7d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,20 @@ rules:
- rolebindings/status
verbs:
- get
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles/status
verbs:
- get
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down
3 changes: 3 additions & 0 deletions controllers/apps/component/component_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ type ComponentReconciler struct {
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings/status,verbs=get

// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;list;watch
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles/status,verbs=get

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
//
Expand Down
14 changes: 14 additions & 0 deletions deploy/helm/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,20 @@ rules:
- rolebindings/status
verbs:
- get
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles/status
verbs:
- get
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down
19 changes: 19 additions & 0 deletions deploy/helm/templates/rbac/rbac_manager_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@ rules:
- list
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles/status
verbs:
- get
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ fullnameOverride: ""
## groups=core,resources=serviceaccounts/status,verbs=get;update;patch
## groups=core,resources=serviceaccounts/finalizers,verbs=update
##
## groups=rbac.authorization.k8s.io,resources=roles,verbs=get;list;watch;create;update;patch;delete
## groups=rbac.authorization.k8s.io,resources=roles/status,verbs=get;update;patch
##
## groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch;create;update;patch;delete
## groups=rbac.authorization.k8s.io,resources=rolebindings/status,verbs=get;update;patch
## groups=rbac.authorization.k8s.io,resources=rolebindings/finalizers,verbs=update
Expand Down

0 comments on commit 2ac7b7d

Please sign in to comment.