Skip to content

Commit

Permalink
docs: added docs for multi-select usage
Browse files Browse the repository at this point in the history
Signed-off-by: Uriah Ahrak <[email protected]>
  • Loading branch information
ahrakos committed Mar 30, 2024
1 parent 19b49a7 commit efd9261
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions docs/workflow-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,46 @@ spec:
- name: message
value: one
enum:
- one
- two
- three
- one
- two
- three
templates:
- name: argosay
inputs:
parameters:
- name: message
value: '{{workflow.parameters.message}}'
container:
name: main
image: 'argoproj/argosay:v2'
command:
- /argosay
args:
- echo
- '{{inputs.parameters.message}}'
```

In case the user would like to use a multi-select dropdown, the same setup as above remains, you just need to:

- Add a field named `multi: true`
- Using the value still as a string, but with a `,` delimiter with the options you choose, without spaces before or after the delimiter.

```yaml
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: workflow-template-with-enum-values
spec:
entrypoint: argosay
arguments:
parameters:
- name: message
multi: true
value: one,two
enum:
- one
- two
- three
templates:
- name: argosay
inputs:
Expand Down

0 comments on commit efd9261

Please sign in to comment.