Open jamestrousdale opened 5 months ago
As specified in https://argo-cd.readthedocs.io/en/latest/operator-manual/deep_links/, clusters annotations are not supported. A workaround could be to add the label to each application from the applicationSet, or contribute to the enhancement :)
Checklist:
argocd version
.Describe the bug
When attempting to reference cluster annotations via
.cluster.metadata.annotations.key
in a deep link on a resource, the value isn't retrieved. The same exact usage works from the application level.I have different logging systems per cluster and I need to tie the base URL for a logging link to the cluster.
I can achieve this via the applicationset templates/generators as well, but it'll require duplicating the logging system base URL to each application where I want to use the deeplink (which is the workaround I'll use for now).
To Reproduce
I've put an annotation on my declarative cluster secret, e.g.
I put a similar annotation on an application via the applicationset template.
I see this annotation show up on the clusters screen in the argo server UI.
I put a links configuration like this in my argocd config map
However, only the one on the application level generates the link successfully. See screenshots below, but long story short, the link
Google1
attempting to use a cluster annotation directs tohttps://google.com/<no value>
, while the second works correctly and directs tohttps://google.com/deeplinkvalue2
.Expected behavior
Screenshots
Version
Logs
I couldn't see any relevant logs generated in the
argocd-server
container.