Open anjuls opened 11 months ago
solved by creating clusterrole and clusterrolebinding. https://github.com/argoproj/argo-cd/pull/15702/files
I have also encountered into this after upgrading from v2.8.4 to v2.8.5, since /manifests/install.yaml
doesn't include the necessary ClusterRole and ClusterRoleBinding which are now required by the notifications-controller.
I think these roles should have been included in the all-in-one install yaml files in #15702.
Confirming this also happens via https://github.com/argoproj/argo-helm/tree/main/charts/argo-cd with the upgrade to Helm release argo-cd to v5.48.0
This should have been fixed by https://github.com/argoproj/argo-cd/pull/16057/files.
Updated yesterday with helm chart directly from the main branch and still same issue.
time="2023-10-30T22:20:27Z" level=info msg="ArgoCD Notifications Controller is starting" built="2023-10-27T23:36:30Z" commit=85025e1dcb683b192ea3599de0b0a196d64c94a7 namespace=argocd version=v2.8.5+85025e1
Edit: Using argo-helm version not manifest.
This should have been fixed by https://github.com/argoproj/argo-cd/pull/16057/files.
I think technically yes, #16057 fixes the notifications controller by listing Application resources in its installed namespace when application-namespaces
is not configured (the default behavior).
But it would be convenient to include the ClusterRole in cluster-wide installation script in case user wants to use Applications in any namespace by configuring application-namespaces
, after installing with install.yaml
.
That's what I did in #16153. https://github.com/argoproj/argo-helm/pull/2315 is a similar fix but for the helm chart.
edit: I got it, this part states that users need to apply extra manifests if they want to use Applications in any namespace, but I think that's easy to miss.
@davidmendezph the fix has been merged but still needs to be released. It'll be in 2.8.6. I'm working through some CI issues, but should get that cut today.
@motoki317 let's stick with adding the cluster role as an opt-in for now. If you'd like to update the docs to be more clear, that would be appreciated!
Checklist:
argocd version
.Describe the bug
I am trying to use argocd notifications to send the slack notifications. But I see a frequent error in notifications pod.
To Reproduce
Current version I have.
Expected behavior
There should not be any error and notification should be sent on Slack.
Screenshots
Version