forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Referencing output artifacts from a container with retries was not fu…
…nctioning (resolves argoproj#698)
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Verifies that retries with artifacts will propogate artifacts | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: retry-with-artifacts- | ||
spec: | ||
entrypoint: retry-with-artifacts | ||
templates: | ||
- name: retry-with-artifacts | ||
steps: | ||
- - name: generate-artifact | ||
template: whalesay | ||
- - name: consume-artifact | ||
template: print-message | ||
arguments: | ||
artifacts: | ||
- name: message | ||
from: "{{steps.generate-artifact.outputs.artifacts.hello-art}}" | ||
|
||
- name: whalesay | ||
retryStrategy: | ||
limit: 4 | ||
container: | ||
image: docker/whalesay:latest | ||
command: [sh, -c] | ||
args: ["cowsay hello world | tee /tmp/hello_world.txt"] | ||
outputs: | ||
artifacts: | ||
- name: hello-art | ||
path: /tmp/hello_world.txt | ||
|
||
- name: print-message | ||
inputs: | ||
artifacts: | ||
- name: message | ||
path: /tmp/message | ||
container: | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ["cat /tmp/message"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters