Skip to content

Instantly share code, notes, and snippets.

@khrm
Last active August 3, 2020 14:33
Show Gist options
  • Save khrm/f8998777c8d135af743a765ad8508fba to your computer and use it in GitHub Desktop.
Save khrm/f8998777c8d135af743a765ad8508fba to your computer and use it in GitHub Desktop.
Release Note

Changes

Features

  • Add CEL function to parse YAML (#636)

This PR will add a CEL function named parseYAML that can parse a YAML string into a map of strings to dynamic values Syntax: .parseYAML() -> map<string, dyn>

  • Expose the incoming request URL to CEL expressions (#647)

This adds a requestURL key to the CEL expression context. For example, requestURL.parseURL().path would get the path of the incoming request URL.

  • Improve the error from the context evaluation (#646)

Improve the error messages around parsing CEL expressions. This improves the granularity of the error messages that are returned by evaluating expressions. It also improves the error message when parsing the hook body when creating the evaluation environment.

  • Support for marshaling other types in CEL (#668)

This adds support for marshaling bool values, and maps if they're used as the values of expressions in a CEL overlay.

  • Add nodeSelector and replicas to Eventlistener (#625)

Add nodeSelector and replicas feature to eventListener. With this, user could schedule eventListener pod to the node with specific label. Also, if needed, user could specify the number of replicas in yaml file.

  • Provide the incoming EventListener URL to the Webhook Interceptor (#669)

Webhook Interceptors can parse the EventListener-Request-URL if they want to extract parameters from the original request URL being handled by the EventListener.

Deprecation Notices 🚨

  • Remove deprecated $(params) (#690) This is a breaking change as this PR remove complete support of $(params) and moved to $(tt.params) in order to avoid confusion between resourcetemplates and triggertemplate params

Fixes 🐛

  • Fix getting-started triggers (#642)

The EventListener was referring to the Binding via name instead of ref. Also, run the getting-started examples as part of the e2e YAML tests. While this won't catch all issues with the examples, it should catch obvious syntax issues like this one.

  • Pass url through (#657)

Fix a bug in the sink where is not passing the URL through to the incoming requests.

  • Fix install links for nginx ingress for GKE (#685)
  • Fix typo in README.md of getting started (#688)
  • Fix triggertemplate validation to validate missing spec field (#691)
  • Fix Spelling Mistake in TestCase (683)

Misc 🔨

  • Change token to secret in gitlab example (#659)
  • Fix License copyright year (#655)
  • Use sets.NewString instead of map[string]struct{} (#663)
  • Update to pipeline knative 0.15 (#661)
  • Update tektoncd/pipeline to v0.14.2 (#684)
  • Update golang.org/x/text to v0.3.3 (#674)
  • Add a new CRD type called Trigger (#628)
  • Add CLI for manual trigger runs (Parse yaml file and read HTTP (#662)
  • Add processTriggerSpec func to wire it to Trigger (#686)

Docs 📖

  • Add cel filter for pull request actions in github example (#637)
  • Update docs and examples to use ref instead of name for bindings (#645)
  • Add EventListener Response in the Doc (#664)
  • Replace old Release docs in favor of a cheat sheet (#670)
  • Remove unused Ref from EventListenerTrigger (#677)
  • Prevent double-logging of interceptor errors (#689)

[Fill list here]

How to upgrade from v0.6.1 :up_arrow:

  1. Change any $(params) to $(tt.params) in TriggerTemplate
  2. Install Triggers. One liner:
kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/previous/v0.7.0/release.yaml

Thanks

Thanks to these contributors who contributed to v0.7.0!

  • ❤️ @GwonsooLee
  • ❤️ @bigkevmcd
  • ❤️ @chetan-rns
  • ❤️ @dibyom
  • ❤️ @dlorenc
  • ❤️ @dorismeixing
  • ❤️ @du2016
  • ❤️ @hnts
  • ❤️ @khrm
  • ❤️ @ljupchokotev
  • ❤️ @savitaashture
  • ❤️ @vdemeester
  • ❤️ @wlynch

Extra shout-out for awesome release notes:

  • 😍 savitaashture
  • 😍 bigkevmcd
  • 😍 chetan-rns
  • 😍 GwonsooLee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment