Skip to content

Commit

Permalink
fix(docs): fix data transformation example (#6901)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Evers <pevers90@gmail.com>
  • Loading branch information
pevers committed Oct 18, 2021
1 parent 20ac307 commit 4524339
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -2185,6 +2185,8 @@ Outputs hold parameters, artifacts, and results from a step

- [`dag-conditional-parameters.yaml`](https://github.com/argoproj/argo-workflows/blob/master/examples/dag-conditional-parameters.yaml)

- [`data-transformations.yaml`](https://github.com/argoproj/argo-workflows/blob/master/examples/data-transformations.yaml)

- [`exit-handler-with-artifacts.yaml`](https://github.com/argoproj/argo-workflows/blob/master/examples/exit-handler-with-artifacts.yaml)

- [`exit-handler-with-param.yaml`](https://github.com/argoproj/argo-workflows/blob/master/examples/exit-handler-with-param.yaml)
Expand Down
4 changes: 4 additions & 0 deletions examples/data-transformations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:

transformation:
- expression: "filter(data, {# endsWith \"main.log\"})"
outputs:
artifacts:
- name: file
path: /file

- name: process-logs
inputs:
Expand Down

0 comments on commit 4524339

Please sign in to comment.