You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support CEL in PipelineRun Task params values (and matrix values).
Use case
Imagine we have a Pipeline cel-use-case with one task payload, this Pipeline has 3 params: a, b and c. Task payload has only one param - destination. Now, depending on value of a we should supply b or c to payload task. Currently it can be done like this:
Option A - using when:
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: cel-use-case
spec:
params:
- a
- b
- c
tasks:
- name: payload-b
params:
- name: destination
value: $(params.b)
when:
- input: "$(params.a)"
operator: in
values: ["b"]
- name: payload-c
params:
- name: destination
value: $(params.c)
when:
- input: "$(params.a)"
operator: in
values: ["c"]
Feature request
Support
CEL
in PipelineRun Task params values (and matrix values).Use case
Imagine we have a Pipeline
cel-use-case
with one taskpayload
, this Pipeline has 3 params:a
,b
andc
. Taskpayload
has only one param -destination
. Now, depending on value ofa
we should supplyb
orc
topayload
task. Currently it can be done like this:Option A - using
when
:Option B - using mutation pre-task:
Now, if we have
CEL
support it can be done like this:The text was updated successfully, but these errors were encountered: