Skip to content

Commit

Permalink
Fix cluster role of controller-manager (#17)
Browse files Browse the repository at this point in the history
E0204 01:40:30.942946       1 reflector.go:127] pkg/mod/k8s.io/client-go@v0.19.2/tools/cache/reflector.go:156: Failed to watch *v1alpha1.Application: failed to list *v1alpha1.Application: applications.argoproj.io is forbidden: User "system:serviceaccount:argocd-commenter-system:default" cannot list resource "applications" in API group "argoproj.io" at the cluster scope
  • Loading branch information
int128 committed Feb 4, 2021
1 parent 483156c commit d57efad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ rules:
- applications
verbs:
- get
- list
- watch
2 changes: 1 addition & 1 deletion controllers/application_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type ApplicationReconciler struct {
Scheme *runtime.Scheme
}

// +kubebuilder:rbac:groups=argoproj.io,resources=applications,verbs=get;watch
// +kubebuilder:rbac:groups=argoproj.io,resources=applications,verbs=get;watch;list

func (r *ApplicationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
ctx := context.Background()
Expand Down

0 comments on commit d57efad

Please sign in to comment.