Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

v0.8.0

Compare
Choose a tag to compare
@anguslees anguslees released this 02 Apr 23:20
b03c2c7

Big feature: import now works on URLs!

  • So things like the following are possible. I recommend using a specific tag/commit URL in practice.
local kube = import "https://raw.githubusercontent.com/bitnami-labs/kube-libsonnet/master/kube.libsonnet";
kube.Secret("foo") {data_+: {foo: "sekret!"}}
  • Note that if remote file A imports a relative path B, then B is resolved relative to A's location (and then along the search path if not found), just as it always was with local paths.
  • New flag: --jurl that is like --jpath but accepts a URL to add to the search path.
  • HTTP/S requests are performed using golang net/http, and should obey http_proxy, etc.
  • The actual "top level" kubecfg input arguments must be local paths for now. These will also change to support URLs in a future release.
  • Thanks to @petr-k for another amazing code contribution!

Other changes:

  • -J argument handling has been changed (ie: fixed). It can now be specified multiple times to add multiple search directories, as always intended.
  • kubecfg.libsonnet is now embedded in the binary (last in the search path), so import "kubecfg.libsonnet" should always work.
  • New completion subcommand that outputs shell completion. source <(kubecfg completion) for bash.
  • Now uses client-go v5.0.1
  • Now uses go-jsonnet v0.10.0, which includes various new std functions.
  • validate now skips resource kinds that can't be found in the server schema, but do appear in the server discovery information. In particular, this allows CRDs to pass validation. Thanks to @mmikulicic!
  • Objects are now validated against the server schema at the beginning of an update (by default).