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.
- Install KFP Tekton prerequisites
- 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/
- 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.