Release 0.14.0 is an incremental release with many bug-fixes that also has been back-ported to 0.13.2 and are described in the 0.13.2 release notes.
Meta
The compile dependencies have been updated to Knative Serving 0.14.0 and Knative Eventing 0.14.1.
This version of kn
is working with Knative Serving backends >= 0.11.0 and Knative Eventing >= 0.12.0, except for the ApiServerSource
support.
Eventing
The support for the ApiServerSource
has been upgraded from v1alpha1
to v1alpha2
which includes some backwards-incompatible changes.
This update implies that kn source apiserver
commands require a Knative Eventing backend >= 0.14.0
In detail, this version includes the following changes compared to kn
0.13:
- The
--resource
option inkn source apiserver create
andkn source apiserver update
takes a different value:- The controller flag has been removed
- Instead, a label selector to restrict the objects for which events are delivered can be added
- For the
--mode
option, the valueRef
for specifying that only references to objects should be delivered as part of the cloudevent payload has been changed toReference
.
So, instead of using:
# kn 0.13 usage
kn source apiserver create myapisource --reference Pod:v1:true --mode Ref --sink broker:default
the new usage pattern is
# kn 0.14 usage, selecting only events from Pods with a label 'app=myapp' with a reference
# to those Pods in the CE payload
kn source apiserver create myapisource --reference Pod:v1:app=myapp --mode Reference --sink broker:default
As always you find the full list of changes in the CHANGELOG.