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.
Support for git/http input artifacts. hack together wait container lo…
…gic as a shell script
- Loading branch information
Showing
30 changed files
with
362 additions
and
172 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
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
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
apiVersion: argoproj.io/v1 | ||
kind: Workflow | ||
metadata: | ||
generateName: argo-wf- | ||
generateName: arguments-artifacts- | ||
spec: | ||
entrypoint: artifact-argument-example | ||
entrypoint: kubectl-input-artifact | ||
arguments: | ||
artifacts: | ||
- name: CODE | ||
- name: kubectl | ||
http: | ||
url: https://mycompany.com/files/foo | ||
url: https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl | ||
|
||
templates: | ||
- name: artifact-argument-example | ||
- name: kubectl-input-artifact | ||
inputs: | ||
artifacts: | ||
- name: CODE | ||
path: /src | ||
- name: kubectl | ||
path: /usr/local/bin/kubectl | ||
mode: 755 | ||
container: | ||
image: debian:latest | ||
image: debian:9.1 | ||
command: [sh, -c] | ||
args: ["cd /src && ls -l"] | ||
args: ["kubectl version"] |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
apiVersion: argoproj.io/v1 | ||
kind: Workflow | ||
metadata: | ||
generateName: argo-wf- | ||
generateName: arguments-parameters- | ||
spec: | ||
entrypoint: cowsay | ||
entrypoint: whalesay | ||
arguments: | ||
parameters: | ||
- name: MESSAGE | ||
- name: message | ||
value: hello world | ||
|
||
templates: | ||
- name: cowsay | ||
- name: whalesay | ||
inputs: | ||
parameters: | ||
- name: MESSAGE | ||
- name: message | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["{{inputs.parameters.MESSAGE}}"] | ||
args: ["{{inputs.parameters.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
apiVersion: argoproj.io/v1 | ||
kind: Workflow | ||
metadata: | ||
generateName: argo-wf- | ||
generateName: artifact-passing- | ||
spec: | ||
entrypoint: artifact-example | ||
templates: | ||
- name: artifact-example | ||
steps: | ||
- - name: COWSAY | ||
template: cowsay | ||
- - name: PRINT | ||
- - name: generate-artifact | ||
template: whalesay | ||
- - name: consume-artifact | ||
template: print-message | ||
arguments: | ||
artifacts: | ||
- name: MESSAGE | ||
from: "{{steps.COWSAY.outputs.artifacts.MESSAGE}}" | ||
- name: message | ||
from: "{{steps.generate-artifact.outputs.artifacts.hello-art}}" | ||
|
||
- name: cowsay | ||
- name: whalesay | ||
container: | ||
image: docker/whalesay:latest | ||
command: [sh, -c] | ||
args: ["cowsay hello world | tee /tmp/hello_world.txt"] | ||
outputs: | ||
artifacts: | ||
- name: MESSAGE | ||
- name: hello-art | ||
path: /tmp/hello_world.txt | ||
|
||
- name: print-message | ||
inputs: | ||
artifacts: | ||
- name: MESSAGE | ||
- name: message | ||
path: /tmp/message | ||
container: | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ["cat /tmp/message; sleep 999999"] | ||
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
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
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
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
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
apiVersion: argoproj.io/v1 | ||
kind: Workflow | ||
metadata: | ||
generateName: argo-wf- | ||
generateName: input-artifact-git- | ||
spec: | ||
entrypoint: git-clone | ||
templates: | ||
- name: git-clone | ||
inputs: | ||
artifacts: | ||
- name: CODE | ||
- name: argo-source | ||
path: /src | ||
git: | ||
url: https://github.com/argoproj/argo.git | ||
repo: https://github.com/argoproj/argo.git | ||
revision: "2.0" | ||
container: | ||
image: golang:1.8 | ||
command: [sh, -c] | ||
args: ["cd /src; git status"] | ||
args: ["cd /src && git status && ls -l"] |
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
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 |
---|---|---|
@@ -1,31 +1,32 @@ | ||
apiVersion: argoproj.io/v1 | ||
kind: Workflow | ||
metadata: | ||
generateName: argo-wf- | ||
generateName: loops-maps- | ||
spec: | ||
entrypoint: loop-map-example | ||
templates: | ||
- name: loop-map-example | ||
steps: | ||
- PRINT-OS: | ||
- - name: test-linux | ||
template: cat-os-release | ||
arguments: | ||
parameters: | ||
- name: IMAGE | ||
- name: image | ||
value: "{{item.image}}" | ||
- name: TAG | ||
- name: tag | ||
value: "{{item.tag}}" | ||
withItems: | ||
- { image: 'debian', tag: '9.1' } | ||
- { image: 'debian', tag: '8.9' } | ||
- { image: 'alpine', tag: '3.6' } | ||
- { image: 'ubuntu', tag: '17.10' } | ||
|
||
- name: cat-os-release | ||
inputs: | ||
parameters: | ||
- name: IMAGE | ||
- name: TAG | ||
- name: image | ||
- name: tag | ||
container: | ||
image: "{{inputs.parameters.IMAGE}}:{{inputs.parameters.TAG}}" | ||
image: "{{inputs.parameters.image}}:{{inputs.parameters.tag}}" | ||
command: [cat] | ||
args: [/etc/os-release] |
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
apiVersion: argoproj.io/v1 | ||
kind: Workflow | ||
metadata: | ||
generateName: argo-wf- | ||
generateName: loops- | ||
spec: | ||
entrypoint: loop-example | ||
templates: | ||
- name: loop-example | ||
steps: | ||
- COWSAY: | ||
template: cowsay | ||
- - name: print-message | ||
template: whalesay | ||
arguments: | ||
parameters: | ||
- name: MESSAGE | ||
- name: message | ||
value: "{{item}}" | ||
withItems: | ||
- hello world | ||
- goodbye world | ||
|
||
- name: cowsay | ||
- name: whalesay | ||
inputs: | ||
parameters: | ||
- name: MESSAGE | ||
- name: message | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["{{inputs.parameters.MESSAGE}}"] | ||
args: ["{{inputs.parameters.message}}"] |
Oops, something went wrong.