Skip to content

Knative Client release v0.9.0

Pre-release
Pre-release
Compare
Choose a tag to compare

This release focusses on improving support for Knative serving with its latest release 0.9.0. It enhances the kn service command group so that ~ 90% of all Knative Serving provided features are supported.

Meta

  • Updated compile dependencies to Knative Serving 0.9.0, kn uses the v1alpha1 version for accessing the Knative serving API, as defined in knative-serving 0.9.0.

Service

The following Service related commands have been enhanced:

  • kn service create & kn service update:

    • --traffic for specifying traffics splits
    • --tag for tagging revisions used in a traffic distribution
    • --annotation for setting annotations
    • --label for setting labels
    • --revision-name allows setting the revision name for a service update
    • --generate-revision-name lets the client create the revision (on by default)
    • --service-account for setting the Service's service account
    • Improved output when creating/updating services synchronously, containing now a progress indication.
  • kn service describe:

    • Switched to human-readable output instead of plain YAML
    • Information about the URL, labels, annotations, environment variables, request and limit resources, concurrency options and more have been added.
    • Include information about active revisions and the traffic distributions among them.
    • All Status conditions
    • --verbose output possible

Example output:

Name:       random
Namespace:  default
Age:        2m
URL:        http://random.default.example.com
Address:    http://random.default.svc.cluster.local

Revisions:
   10%  @latest (random-mrznh-2) [2] (1m)
        Image:  rhuss/random:2.0 (pinned to d922f5)
   90%  random-mtbxz-1 #v1 [1] (2m)
        Image:  rhuss/random:1.0 (pinned to 946b7c)

Conditions:
  OK TYPE                   AGE REASON
  ++ Ready                   3s
  ++ ConfigurationsReady     1m
  ++ RoutesReady             3s
  • kn service list:
    • --no-headers for omitting the column headers in the output
    • Adding the latest revision to the list output

Plugins

Support for plugins has been added. This support works similar to kubectl plugins as it will execute external plugin command based on the command given. E.g. a kn pipeline create would call an external command kn-pipeline-create. This executable can be looked up from the execution path or from within a dedicated plugin directory (~/.kn/plugins by default).

All accessible plugins can be listed with kn plugin list.

Misc

  • Updated kn version to include the supported API version
  • Changed boolean flags to the --foo and --no-foo format
  • --log-output option added for helping to debug
  • --all-namespaces(-A) for listing resources in all namespaces
  • Removed zsh completion as upstream support is broken for now
  • Documentation improvements

For all features and fixes included in this release, please refer to the Changelog.