-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Provide values of withItems maps as JSON in {{item}}. Fixes #1905 #1906
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1906 +/- ##
=========================================
Coverage ? 11.17%
=========================================
Files ? 35
Lines ? 23541
Branches ? 0
=========================================
Hits ? 2630
Misses ? 20573
Partials ? 338
Continue to review full report at Codecov.
|
ba62bbe
to
14c004f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This broke my workflow. Previously there was an extra layer of json deserialization applied to the items in the list, as compared to current. |
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: workflow-template
spec:
arguments:
parameters:
- name: event-payload
value: ""
ttlSecondsAfterFinished: 300
serviceAccountName: workflow
entrypoint: workflow-template
parallelism: 4
templates:
- name: workflow-template
steps:
- - name: job-creator
template: job-creator
- - name: run-job
template: run-job
arguments:
parameters:
- name: job
value: "{{item}}"
withParam: "{{steps.job-creator.outputs.parameters.jobs-list}}"
- name: job-creator
podSpecPatch: |
containers:
- name: main
resources:
requests:
cpu: 1
memory: 14336Mi
container:
image: workflow
imagePullPolicy: Always
command: [python3, "job_creator.py"]
outputs:
parameters:
- name: jobs-list
valueFrom:
path: /tmp/jobs_list.json
- name: run-job
podSpecPatch: |
containers:
- name: main
resources:
requests:
cpu: 2
memory: 4048Mi
inputs:
parameters:
- name: job
container:
image: workflow
imagePullPolicy: Always
command: [python3, "process_job.py"]
args: ["{{inputs.parameters.job}}"]
volumeMounts:
- name: nfs-volume
mountPath: /efs/ |
that workflow still works. However, the value of |
Please see: #2248 |
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
. Why? for the release notes.