Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1017 Bytes

File metadata and controls

22 lines (18 loc) · 1017 Bytes

The flip-coin pipeline

This sample is a demostration on how to use user defined custom task and custom CEL task to reproduce the flip-coin pipeline on different ways to define conditions and task dependencies.

prerequisites

Instructions

  1. Install the Condtion custom task controller for computing runtime conditions. Make sure to setup GOPATH and ko before running the commands below.
    git clone https://github.com/tektoncd/experimental/
    cd experimental/cel
    ko apply -f config/
  2. Compile the flip-coin pipeline using the compiler inside the python code. The kfp-tekton SDK will produce a Tekton pipeline yaml definition in the same directory called condition.yaml.
    # Compile the python code
    python condition.py

Then, upload the condition.yaml file to the Kubeflow pipeline dashboard with Tekton Backend to run this pipeline.