How to pass arry to container.args? #15460
Unanswered
SleepyBrett
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a input string that i've constructed in another step that I need to use as a .container.args. How do I template that? I've tried a few things so far.
Input parameter: '["--foo","--bar","--baz"]'
Template
things that do not work:
"{{inputs.parameters.args}}"(this passes the whole json array as one list item)"{{=sprig.fromJson(input.parameters.args}}"(json: cannot unmarshal string into Go struct field Container.spec.templates.container.args of type []string)args: [ "{{inputs.parameters.message}}" ]but that only works if you have a single parameter or a fixed number of parameters.Beta Was this translation helpful? Give feedback.
All reactions