Skip to content

Knative Client release v1.4.1

Compare
Choose a tag to compare
@knative-prow-releaser-robot knative-prow-releaser-robot released this 17 May 10:47
c53658b

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 of Always, 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, then kn won't return an error but considers to be an expected fluctuation during the reconciliation process)
  • --scale-metric for setting the autoscaling.knative.dev/metric annotation on a service that specifies the metric the autoscaler should scale on. Possible value are concurrency, cpu, memory and rps.
  • 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 key cmkey in ConfigMap myconfigmap 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:

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.