DevOps · Flashcard

What input does withParam expect?

  • AA JSON array of items, which may be generated at runtime
  • BA YAML list written inline in the template that uses it
  • CA comma-separated string the controller splits on commas
  • DA single parameter whose value the loop repeats N times

Why this is the answer

withParam takes a JSON array of items, and because it reads a parameter that array can be produced while the workflow runs. An inline YAML list is withItems, which is fixed at authoring time. Argo does no comma splitting — a string that is not valid JSON simply fails to expand. And repeating one value a set number of times is closer to withSequence, which counts rather than iterating data.

Official docs
Study in Gnoseed →