Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing rbac #8849

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading