pipelines/sdk/python/tests/compiler/testdata/artifact_location.yaml

132 lines
3.7 KiB
YAML

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: foo-
spec:
arguments:
parameters:
- name: tag
- name: namespace
value: kubeflow
- name: bucket
value: foobar
entrypoint: foo
serviceAccountName: pipeline-runner
templates:
- dag:
tasks:
- arguments:
parameters:
- name: bucket
value: '{{inputs.parameters.bucket}}'
- name: namespace
value: '{{inputs.parameters.namespace}}'
- name: tag
value: '{{inputs.parameters.tag}}'
name: foo
template: foo
- arguments:
parameters:
- name: bucket
value: '{{inputs.parameters.bucket}}'
- name: tag
value: '{{inputs.parameters.tag}}'
name: foo-2
template: foo-2
inputs:
parameters:
- name: bucket
- name: namespace
- name: tag
name: foo
- container:
image: busybox:{{inputs.parameters.tag}}
inputs:
parameters:
- name: bucket
- name: namespace
- name: tag
name: foo
outputs:
artifacts:
- name: mlpipeline-ui-metadata
optional: true
path: /mlpipeline-ui-metadata.json
s3:
accessKeySecret:
key: ''
optional: true
bucket: '{{inputs.parameters.bucket}}'
endpoint: minio-service.{{inputs.parameters.namespace}}:9000
insecure: true
key: runs/{{workflow.uid}}/{{pod.name}}/mlpipeline-ui-metadata.tgz
secretKeySecret:
key: ''
optional: true
- name: mlpipeline-metrics
optional: true
path: /mlpipeline-metrics.json
s3:
accessKeySecret:
key: ''
optional: true
bucket: '{{inputs.parameters.bucket}}'
endpoint: minio-service.{{inputs.parameters.namespace}}:9000
insecure: true
key: runs/{{workflow.uid}}/{{pod.name}}/mlpipeline-metrics.tgz
secretKeySecret:
key: ''
optional: true
- container:
image: busybox:{{inputs.parameters.tag}}
inputs:
parameters:
- name: bucket
- name: tag
name: foo-2
outputs:
artifacts:
- name: mlpipeline-ui-metadata
optional: true
path: /mlpipeline-ui-metadata.json
s3:
accessKeySecret:
key: ''
optional: true
bucket: '{{inputs.parameters.bucket}}'
endpoint: s3.amazonaws.com
insecure: false
key: runs/{{workflow.uid}}/{{pod.name}}/mlpipeline-ui-metadata.tgz
region: ap-southeast-1
secretKeySecret:
key: ''
optional: true
- name: mlpipeline-metrics
optional: true
path: /mlpipeline-metrics.json
s3:
accessKeySecret:
key: ''
optional: true
bucket: '{{inputs.parameters.bucket}}'
endpoint: s3.amazonaws.com
insecure: false
key: runs/{{workflow.uid}}/{{pod.name}}/mlpipeline-metrics.tgz
region: ap-southeast-1
secretKeySecret:
key: ''
optional: true