Skip to content

Commit

Permalink
[cel] CEL Custom Tasks CRD
Browse files Browse the repository at this point in the history
We introduced CEL Custom Tasks to experiment with using an expression
language with Tekton Pipelines.

Given feedback from the past several months of usage, we have identified
three main current challenges:
- CEL custom tasks do not take variables for the CEL environment.
As such, users cannot evaluate CEL expressions given specific variables
or in specific context. For example, as described in
#716 and
tektoncd/community#403, a user needed to
declare runtime storage variables in the CEL environment.
- CEL custom tasks are not a CRD thus making them unreusable across
different Runs and PipelineRuns. Read more in
tektoncd/community#314 (review).
- CEL custom tasks take the CEL expressions through Parameters which is
misleading to some users. Read more in
tektoncd/community#314 (review).

To address the above challenges, this change introduces a CRD for CEL
Custom Tasks, which takes CEL expressions and CEL environment variables.
With this change:
- CEL custom tasks now take variables for the CEL environment
- CEL custom tasks are reusable across different Runs and PipelineRuns
- CEL custom tasks take expressions through its own field

Closes tektoncd/community#403
Closes #716
  • Loading branch information
jerop committed Sep 7, 2021
1 parent eddc3ed commit ee11149
Show file tree
Hide file tree
Showing 83 changed files with 5,801 additions and 1,061 deletions.
3 changes: 0 additions & 3 deletions cel/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,3 @@ cmd/*/kodata/source.tar.gz
test/pullrequest/pullrequest-init
/.bin/
/bin/

# allow vendor
!vendor/
1 change: 1 addition & 0 deletions cel/.ko.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaultBaseImage: gcr.io/distroless/static:nonroot
Loading

0 comments on commit ee11149

Please sign in to comment.