Knative Client release v0.22.0
kn
0.22.0 comes with some bug fixes and minor feature enhancements. It's mostly a polishing release. If you are using the client API, there is a breaking change that was needed to align with Kubernetes client API's
Meta
The compile dependencies have been updated to Knative Serving 0.22.0 and Knative Eventing 0.22.0. There are no changes in the used API version for communicating with the backend.
Managing custom domain mappings
This release adds support for CRUD management of domain mappings. I.e. you can use kn domain
along with its sub-commands create
, update
, describe
, list
and delete
to fully manage DomainMapping
resources for the installation of custom domains for Knative services.
# Create a domain mappings 'hello.example.com' for Knative service 'hello'
kn domain create hello.example.com --ref hello
# Update a domain mappings 'hello.example.com' for Knative service 'hello'
kn domain create hello.example.com --refFlags hello
# List all domain mappings
kn domain list
# Delete domain mappings 'hello.example.com'
kn domain delete hello.example.com
See kn domain help
for more information.
Client API signature change
A context.Context
object is added as the first argument to every Client API method to align with Kubernetes' client API signatures. This change does not affect any client's CLI usage, only if the client-specific Golang API is used for communicating with the Knative backend has changed. The migration is straight forward, either pass an already existing context down to the call or leverage one of the available standard contexts (like context.TODO()
).
This change does not affect any CLI usage of the client.
Released plugins
The plugins that are released aligned with 0.22 are:
- kn-plugin-admin for managing Knative installations that are running on Kubernetes | download
- kn-plugin-source-kafka for managing a Kafka Source that has been installed via eventing-kafka on the backend | download
Minor updates
- Fix
kn export
uses the Export format as the default - Added
S
column to specify built-in sources inkn source list-types
- Added support for namespaces for all commands that takes a
--sink
option
You can find the complete list of changes in the CHANGELOG.