# Copyright 2021 kubeflow.org # # 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: tekton.dev/v1beta1 kind: PipelineRun metadata: name: my-pipeline annotations: tekton.dev/output_artifacts: '{}' tekton.dev/input_artifacts: '{}' tekton.dev/artifact_bucket: mlpipeline tekton.dev/artifact_endpoint: minio-service.kubeflow:9000 tekton.dev/artifact_endpoint_scheme: http:// tekton.dev/artifact_items: '{"my-in-coop1": []}' sidecar.istio.io/inject: "false" pipelines.kubeflow.org/big_data_passing_format: $(workspaces.$TASK_NAME.path)/artifacts/$ORIG_PR_NAME/$TASKRUN_NAME/$TASK_PARAM_NAME pipelines.kubeflow.org/pipeline_spec: '{"inputs": [{"default": "10", "name": "my_pipe_param", "optional": true, "type": "Integer"}], "name": "my-pipeline"}' spec: params: - name: my_pipe_param value: '10' pipelineSpec: params: - name: my_pipe_param default: '10' tasks: - name: my-pipeline-for-loop-4 params: - name: loop-item-param-2 value: 1,2 - name: loop-item-param-3 value: ',' - name: my_pipe_param value: $(params.my_pipe_param) taskSpec: apiVersion: custom.tekton.dev/v1alpha1 kind: PipelineLoop spec: pipelineSpec: params: - name: loop-item-param-2 type: string - name: my_pipe_param type: string tasks: - name: my-in-coop1 params: - name: loop-item-param-2 value: $(params.loop-item-param-2) - name: my_pipe_param value: $(params.my_pipe_param) taskSpec: steps: - name: main args: - | set -e echo op1 "$0" "$1" - $(inputs.params.loop-item-param-2) - $(inputs.params.my_pipe_param) command: - sh - -c image: library/bash:4.4.23 params: - name: loop-item-param-2 type: string - name: my_pipe_param type: string metadata: labels: pipelines.kubeflow.org/pipelinename: '' pipelines.kubeflow.org/generation: '' pipelines.kubeflow.org/cache_enabled: "true" annotations: pipelines.kubeflow.org/component_spec_digest: '{"name": "my-in-coop1", "outputs": [], "version": "my-in-coop1@sha256=42f0c6a60c7e435441b8afaeb382a771a9741fe3aabb203748fdbd72b25f1628"}' tekton.dev/template: '' timeout: 525600m iterateParam: loop-item-param-2 iterateParamStringSeparator: loop-item-param-3 metadata: labels: pipelines.kubeflow.org/pipelinename: '' pipelines.kubeflow.org/generation: '' pipelines.kubeflow.org/cache_enabled: "true" timeout: 525600m