Skip to content

Commit

Permalink
fix: no permissions for crd list&watch (#7120)
Browse files Browse the repository at this point in the history
  • Loading branch information
free6om authored Apr 22, 2024
1 parent 6e2f543 commit 66b6c40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ rules:
- customresourcedefinitions
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
Expand Down
2 changes: 1 addition & 1 deletion controllers/apps/component_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ type ComponentReconciler struct {
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=get;list;watch
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings/status,verbs=get

// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get
// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch

// 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
2 changes: 2 additions & 0 deletions deploy/helm/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ rules:
- customresourcedefinitions
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
Expand Down

0 comments on commit 66b6c40

Please sign in to comment.