How to use Argo CD App metadata in notification template? #3990
-
We are using Argo CD notifications currently and I am testing out Argo Rollouts and trying to implement the equivalent notifications for Argo Rollouts. For context, Argo CD and Argo Rollouts are currently installed in different namespaces on the same cluster. In the docs, there are multiple examples of using Has anyone run into this before and figured out a way to get the Rollout notification template to be able to access the Argo Application data? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The Rollout controller has no visibility into Argo CD or Git or anything that is not defined in a Rollout resources. So the notifications only have access to the Rollout context. |
Beta Was this translation helpful? Give feedback.
Yes the docs are probably incorrect. Because the notification engine is common between the two projects at some point the notification docs were merged into both projects (Argo CD, Argo Rollouts). But I believe nobody has ever checked that the part that was added in Rollouts is actually documented to mention rollouts.
Could you please open a github issue for this, so that we can keep track of it?
In general however
Argo CD notifications -> only know what happens with Argo CD apps
Argo Rollouts notifications -> only know what happens with Rollout objects.
There is no mix between the two (at least in a default installation)