|
| 1 | +apiVersion: argoproj.io/v1alpha1 |
| 2 | +kind: Workflow |
| 3 | +metadata: |
| 4 | + generateName: pipeline- |
| 5 | + annotations: {pipelines.kubeflow.org/kfp_sdk_version: 1.8.11, pipelines.kubeflow.org/pipeline_compilation_time: '2022-01-31T21:51:10.599476', |
| 6 | + pipelines.kubeflow.org/pipeline_spec: '{"inputs": [{"name": "url"}], "name": "Pipeline"}'} |
| 7 | + labels: {pipelines.kubeflow.org/kfp_sdk_version: 1.8.11} |
| 8 | +spec: |
| 9 | + entrypoint: pipeline |
| 10 | + templates: |
| 11 | + - name: download |
| 12 | + container: |
| 13 | + args: [] |
| 14 | + command: |
| 15 | + - sh |
| 16 | + - -exc |
| 17 | + - | |
| 18 | + url="$0" |
| 19 | + path='/tmp/script' |
| 20 | + curl "$url" -o "$path" |
| 21 | + chmod 700 "$path" |
| 22 | + /bin/sh "$path" |
| 23 | + - '{{inputs.parameters.url}}' |
| 24 | + image: alpine/curl |
| 25 | + inputs: |
| 26 | + parameters: |
| 27 | + - {name: url} |
| 28 | + metadata: |
| 29 | + annotations: {author: Alexander Perlman <[email protected]>, pipelines.kubeflow.org/component_spec: '{"implementation": |
| 30 | + {"container": {"command": ["sh", "-exc", "url=\"$0\"\npath=''/tmp/script''\ncurl |
| 31 | + \"$url\" -o \"$path\"\nchmod 700 \"$path\"\n/bin/sh \"$path\"\n", {"inputValue": |
| 32 | + "Url"}], "image": "alpine/curl"}}, "inputs": [{"name": "Url", "type": "URI"}], |
| 33 | + "metadata": {"annotations": {"author": "Alexander Perlman <[email protected]>"}}, |
| 34 | + "name": "Download"}', pipelines.kubeflow.org/component_ref: '{"digest": |
| 35 | + "1bb47e384d056817b16202398d1e5fc8ce02daf1e40f69e3103218402c05437b", "url": |
| 36 | + "https://raw.githubusercontent.com/droctothorpe/examples/master/demos/recurring/component.yaml"}', |
| 37 | + pipelines.kubeflow.org/arguments.parameters: '{"Url": "{{inputs.parameters.url}}"}'} |
| 38 | + labels: |
| 39 | + pipelines.kubeflow.org/kfp_sdk_version: 1.8.11 |
| 40 | + pipelines.kubeflow.org/pipeline-sdk-type: kfp |
| 41 | + pipelines.kubeflow.org/enable_caching: "true" |
| 42 | + - name: pipeline |
| 43 | + inputs: |
| 44 | + parameters: |
| 45 | + - {name: url} |
| 46 | + dag: |
| 47 | + tasks: |
| 48 | + - name: download |
| 49 | + template: download |
| 50 | + arguments: |
| 51 | + parameters: |
| 52 | + - {name: url, value: '{{inputs.parameters.url}}'} |
| 53 | + arguments: |
| 54 | + parameters: |
| 55 | + - {name: url} |
| 56 | + serviceAccountName: pipeline-runner |
0 commit comments