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

app-controller misses permissions in namespaced Argo CD installation #16551

Closed
3 tasks done
llavaud opened this issue Dec 6, 2023 · 1 comment
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@llavaud
Copy link

llavaud commented Dec 6, 2023

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

Since the merge of this #15036, namespaced Argo CD installation misses some permissions in the application controller Role.
I think we should add the following permissions in this Role:

- apiGroups:
  - apps
  resources:
  - deployments
  verbs:
  - get
  - list
  - watch

To Reproduce

Make a namespaced Argo CD installation and look at the controller logs

Expected behavior

Don't have forbidden errors in the logs

Version

argocd: v2.9.3+6eba5be
  BuildDate: 2023-12-01T23:05:50Z
  GitCommit: 6eba5be864b7e031871ed7698f5233336dfe75c7
  GitTreeState: clean
  GoVersion: go1.21.3
  Compiler: gc
  Platform: linux/amd64

Logs

W1204 21:00:55.732006   7 reflector.go:324] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:argo-cd:argocd-application-controller" cannot list resource "deployments" in API group "apps" in the namespace "argo-cd"
E1204 21:00:55.732043   7 reflector.go:138] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1.Deployment: failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:argo-cd:argocd-application-controller" cannot list resource "deployments" in API group "apps" in the namespace "argo-cd"
@llavaud llavaud added the bug Something isn't working label Dec 6, 2023
@llavaud llavaud closed this as completed Jan 19, 2024
@llavaud
Copy link
Author

llavaud commented Jan 19, 2024

fixed by #16785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant