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

A notification error occurs when managing an application in a namespace where argocd is not installed #2319

Closed
derekcha opened this issue Oct 30, 2023 · 2 comments · Fixed by #2315
Labels
bug Something isn't working

Comments

@derekcha
Copy link

Describe the bug

A notification error occurs when managing an application in a namespace where argocd is not installed.
I installed argocd in the argo namespace and created and used the application in another namespace, but the following error is occurring in notifications-controller.

W1030 18:34:06.483874       7 reflector.go:324] pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/reflector.go:167: failed to list *unstructured.Unstructured: failed to list applications: applications.argoproj.io is forbidden: User "system:serviceaccount:argo:argocd-notifications-controller" cannot list resource "applications" in API group "argoproj.io" at the cluster scope
E1030 18:34:06.483896       7 reflector.go:138] pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/reflector.go:167: Failed to watch *unstructured.Unstructured: failed to list *unstructured.Unstructured: failed to list applications: applications.argoproj.io is forbidden: User "system:serviceaccount:argo:argocd-notifications-controller" cannot list resource "applications" in API group "argoproj.io" at the cluster scope
W1030 18:34:07.460939       7 reflector.go:324] pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/reflector.go:167: failed to list *unstructured.Unstructured: failed to list applications: applications.argoproj.io is forbidden: User "system:serviceaccount:argo:argocd-notifications-controller" cannot list resource "applications" in API group "argoproj.io" at the cluster scope

I think notifications need clusterRole.
I can create clusterrole and clusterrolebinding separately, but I think it would be better if they were included in the chart.

Related helm chart

argo-cd

Helm chart version

5.48.0

To Reproduce

v5.28.0 ArgoCD helm chart run

Expected behavior

notiNo errors occur in the notifications controller and notifications come well.

Screenshots

No response

Additional context

No response

@derekcha derekcha added the bug Something isn't working label Oct 30, 2023
@DrFaust92
Copy link
Contributor

#2315 Should resolve it

@enys
Copy link
Contributor

enys commented Oct 30, 2023

All good, thx !

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

Successfully merging a pull request may close this issue.

3 participants