Knative Client release v1.4.1
Meta
The compile dependencies have been updated to Knative Serving v1.4.0, Knative Eventing v1.4.0 (Go module versions are v0.31.0).
Enhancements for service management
Some new flags have been added to kn service create
, kn service update
and kn service apply
:
--timeout
for specifying the amount of time (in seconds) to wait for the application to respond to a request before returning with a timeout error. The value of this option sets the.spec.template.spec.timeoutSecond
field on the service. The server-side default is used if not provided, which is 300s by default.--pull-policy
for setting the imagePullPolicy for the application's image. Like for a pod's container, this can one ofAlways
,Never
,IfNotPresent
. The pull policy will be applied against the digest of the resolved image (Knative always resolves an image tag to a digest) and not the image tag.--wait-window
for setting the error window which allows intermediate errors while waiting for the ready status of a service. If not given, a default of 2 seconds is used (i.e. if an error state occurs but gets back to a success state within two seconds, thenkn
won't return an error but considers to be an expected fluctuation during the reconciliation process)--scale-metric
for setting theautoscaling.knative.dev/metric
annotation on a service that specifies the metric the autoscaler should scale on. Possible value areconcurrency
,cpu
,memory
andrps
.- Added subpath functionality to the
--mount
flag so that subdirectories of a volume can be mounted. For example,--mount /mydir=cm:myconfigmap/cmkey
will mount the value of keycmkey
in ConfigMapmyconfigmap
to a directory/mydir
within the services' application container.
Released plugins
The kn-plugin-event
plugin is now included since this release.
The plugins that are released in parallel and aligned with Knative v1.4.0 are:
- kn-plugin-admin for managing Knative installations that are running on Kubernetes | download
- kn-plugin-quickstart to quickly set up a local Knative environment from the command line. | download
- kn-plugin-source-kafka for managing a Kafka Source that has been installed via eventing-kafka on the backend | download
- kn-plugin-source-kamelet for managing Kamelet Sources that has been installed via Camel-K on the backend | download
- kn-plugin-event for creating and sending CloudEvents from insider or outside the cluster | download
All those plugins are released separately and are technically not part of this knative/client
release, they are aligned however to share the same Knative dependencies and can be targeted for inlining.
You can find the complete list of changes in the CHANGELOG.