I'm trying to use the stdout
from a step as file input from another step.
Since the output is pretty big, I'm getting the error argument list too long
.
...
spec:
templates:
- name: main
steps:
- - name: big-output
...
- - name: print
template: head-query
arguments:
parameters:
- name: query-result
raw:
data: "{{steps.big-output.outputs.result}}"
- name: head-query
inputs:
parameters:
- name: query-result
path: /input/query.txt
raw:
data: "{{inputs.parameters.query-result}}"
container:
image: alpine
command: [head]
args:
- /input/query.txt
What is the proper way to put the stdout
in a file? Is there some way to avoid modifying the step with the big output?