Skip to content

templating metrics with Helm #11539

Closed Answered by agilgur5
sabreensalama asked this question in Q&A
Discussion options

You must be logged in to vote

It sounds like you're trying to put the resource through Helm?
You did not mention that in your question, but that is a very important detail 😕 That would explain why it interpreted duration as a function, despite not using an Argo expression. And workflow is indeed not a Helm function, it is an Argo variable.
I thought the error sounded off initially, but did not think Helm were being used without mention...

If you're using Helm templating, you need to escape Argo's own templating. helm/helm#2798 lists several ways of doing so. The one I am most familiar with is "Option 1" from this SO answer (written by an Argo CD maintainer).
Here's how you could use that for your template:

# ...
        

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sabreensalama
Comment options

@agilgur5
Comment options

Answer selected by sabreensalama
@sabreensalama
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/templating Templating with `{{...}}` type/support User support issue - likely not a bug
2 participants