๐ Cloud Events for Runs, Overrides for TaskRuns, and lots of fixes ๐
-Docs @ v0.34.0
-Examples @ v0.34.0
Installation one-liner
kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.34.0/release.yaml
Attestation
The Rekor UUID for this release is 1a84bc03f5f849d177185512d5578da724982ad33457852a1da2e93f259e7fb7
Obtain the attestation:
REKOR_UUID=1a84bc03f5f849d177185512d5578da724982ad33457852a1da2e93f259e7fb7
rekor-cli get --uuid $REKOR_UUID --format json | jq -r .Attestation | base64 --decode | jq
Verify that all container images in the attestation are in the release file:
RELEASE_FILE=https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.34.0/release.yaml
REKOR_UUID=1a84bc03f5f849d177185512d5578da724982ad33457852a1da2e93f259e7fb7
# Obtains the list of images with sha from the attestation
REKOR_ATTESTATION_IMAGES=$(rekor-cli get --uuid "$REKOR_UUID" --format json | jq -r .Attestation | base64 --decode | jq -r '.subject[]|.name + ":v0.34.0@sha256:" + .digest.sha256')
# Download the release file
curl "$RELEASE_FILE" > release.yaml
# For each image in the attestation, match it to the release file
for image in $REKOR_ATTESTATION_IMAGES; do
printf $image; grep -q $image release.yaml && echo " ===> ok" || echo " ===> no match";
done
Changes
Features
-
โจ TEP-0090: Matrix - Context Variables (#4689)
Parameters
inMatrix
supportContext Variables
. Note thatMatrix
is not yet fully functional. -
โจ Implement CloudEvents for Runs (#4663)
Tekton Pipelines can now generate CloudEvents for Runs.
This feature is disabled by default. It can by enable by setting a sink URL and flipping the new feature flag "send-cloudevents-for-runs" to "true" -
โจ Add CloudEvents for Run definitions (#4659)
CloudEvents for Run have been defined, but they are not sent yet.
-
โจ TEP-0090: Matrix - API Change and Feature Flag (#4600)
Added syntax support for
Matrix
as an alpha feature. It is still in a very early stage of development and is not yet fully functional. -
โจ Implement Step and Sidecar Overrides for TaskRun (#4598)
-
โจ Add functions to merge step/sidecar overrides (#4617)
Backwards incompatible changes
In current release:
-
๐จ Change Default Metrics Level for Taskrun and Pipelinerun (#4630)
The Level for taskrun and pipelinerun metrics will change in this release. By default, taskrun and pipelinerun metrics have these values:
metrics.taskrun.level: "task" metrics.taskrun.duration-type: "histogram" metrics.pipelinerun.level: "pipeline" metrics.pipelinerun.duration-type: "histogram"
-
๐จ If an annotation or label is present in both Pipeline and PipelineRun, the value in the Run type takes precedence (same for Task and TaskRun) (#4638)
Fixes
-
๐ TEP-0090: Add validation for PipelineTask context variables (#4684)
-
๐ Update getNextTasks to support Run retries (#4647)
schedule Runs with remaining retries
-
๐ Update IsFailure method to reflect Run retries (#4625)
Runs that have remaining retries are not failed
-
๐ set the param type based on the default value (#4608)
Set the type of the param based on the default value when the type is not specified or cannot be inferred from the default value.
-
๐ workspace-in-sidecar flakey test fix (#4634)
-
๐ Add log line to debg workspace-in-sidecar example (#4646)
-
๐ Fix Task(Run)/Pipeline(Run) metadata propagation (#4638)
Fix Task(Run)/Pipeline(Run) metadata propagation, If an annotation or label is present in both Pipeline and PipelineRun, the value in the
Run type takes precedence (same for Task and TaskRun) -
๐ Change Default Metrics Level for Taskrun and Pipelinerun (#4630)
The Level for taskrun and pipelinerun metrics will change in this release. By default, taskrun and pipelinerun metrics have these values:
metrics.taskrun.level: "task" metrics.taskrun.duration-type: "histogram" metrics.pipelinerun.level: "pipeline" metrics.pipelinerun.duration-type: "histogram"
Misc
-
๐จ refactor reconcile pipeline TaskSpecMetadata test (#4693)
-
๐จ refactor create helpers in reconcile pr tests (#4682)
-
๐จ TEP-0090: Refactor Pipeline Workspaces Validation (#4670)
-
๐จ clean up reconcile unit test to use YAML parser (#4637)
-
๐จ test reconcile on cancelled refactor (#4628)
-
๐จ refactor TestReconcile_PipelineSpecTaskSpec result (#4627)
-
๐จ TEP-0058: Graceful Termination - is deprecated (#4612)
Reminder that
PipelineRunCancelled
was deprecated in v0.25. Earliest removal date is March 2022. -
๐จ Build tekton pipelines with golang 1.17 (#4639)
Tekton is now built using golang 1.17.7
-
๐จ PipelineRunState cleanup: tests + comments (#4667)
-
๐จ Remove unused windows dockerfiles (#4644)
-
๐จ cleanup - refactor taskRunStatus and runStatus unit tests (#4632)
-
๐จ Replace remaining implementations of TestClock (#4624)
-
๐จ refactor TestReconcile_PipelineSpecTaskSpec objects (#4622)
-
๐จ clean up TestReconcile_CloudEvents YAML parsing (#4619)
-
๐จ cleaning up a unit test InvalidPipelineRuns to use YAML parser (#4616)
-
๐จ Replace Clock package with k8s Clock package (#4607)
-
๐จ Remove broken link in development doc (#4602)
-
๐จ Add GetStatusCondition for Run (#4658)
-
๐จ TEP-0090: Pipeline Context Variables - Fix Validation Tests (#4685)
-
๐จ Add hostAliases to podTemplate doc (#4683)
-
๐จ go.mod: bump containerd dependency to 1.5.10 (#4649)
-
๐จ TEP-0090: Refactor execution status validation (#4635)
-
๐จ Remove lengthly operations from hermetic tests ๐งช (#4590)
Docs
-
๐ TEP-0090: Matrix - Update API definition (#4601)
-
๐ Update the release cheatsheet to the new release drafter (#4677)
-
๐ Update API reference docs for TaskRun (#4662)
-
๐ Add links to docs and examples for 4 minor releases (#4650)
-
๐ Add links to docs and examples for v0.33.0 (#4595)
-
๐ Update taskrun code example links in the documentation (#4692)
Thanks
Thanks to these contributors who contributed to v0.34.0!
- โค๏ธ @Yongxuanzhang
- โค๏ธ @afrittoli
- โค๏ธ @arshchimni
- โค๏ธ @bobcatfish
- โค๏ธ @jbpratt
- โค๏ธ @jerop
- โค๏ธ @khrm
- โค๏ธ @lbernick
- โค๏ธ @pritidesai
- โค๏ธ @sbwsg
- โค๏ธ @vdemeester
- โค๏ธ @xchapter7x
Extra shout-out for awesome release notes:
- ๐ @afrittoli
- ๐ @arshchimni
- ๐ @jbpratt
- ๐ @jerop
- ๐ @khrm
- ๐ @lbernick
- ๐ @pritidesai
- ๐ @sbwsg
- ๐ @vdemeester
- ๐ @xchapter7x