ArgoCD Notifications for Multi-source applications #17074
Replies: 2 comments 3 replies
-
@VsevolodKalinin i found your post looking to solve the same error. i used the same syntax to solve the error. not sure if you've solved your issue but i caught in your above error message a reference to ".app.spec.source 0" instead of ".app.spec.sources 0". |
Beta Was this translation helpful? Give feedback.
0 replies
-
For whoever sees this in the future -
Just replace the index with the index of your array item. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good evening) I want to use ArgoCD Notifications for Multi-source applications, but I can't figure out how to properly describe the template, please help because I didn't find the information on the documentation site )
Configmap
I tried to change it
"uri":"{{ "{{" }}.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{ "{{" }}(index .app.spec.sources 0 ).repoURL| call .repo.RepoURLToHTTPS}}"
error " template: app-health-ok:19:15: executing "app-health-ok" at <index .app.spec.source 0>: error calling index:"
what are the ways to solve the problem?
Beta Was this translation helpful? Give feedback.
All reactions