Skip to content

Releases: dhall-lang/dhall-kubernetes

v7.0.0

21 Jun 01:05
78e9df2
Compare
Choose a tag to compare

v6.0.0

02 Sep 05:22
8c24915
Compare
Choose a tag to compare

v5.0.0

08 Jan 02:59
a4126b7
Compare
Choose a tag to compare

v4.0.0

03 Apr 16:21
506d633
Compare
Choose a tag to compare
  • No longer require the --omitEmpty flag to dhall-to-yaml

    The types were changed so that all optional records are explicitly marked Optional.

    Before this change, the types were designed around the use of the --omitFlag flag so that a record could be implicitly omitted by not specifying any non-default fields. However, that led to ambiguous situations where there was no way to distinguish between a present but empty value and an absent value, and in some cases the distinction between the two mattered. For example, in Kubernetes a present but empty label selector matches everything whereas an absent label selector matches nothing.

    Practically, what this means is that you will now need to add a few more Somes in your resource definitions (typically around records) where there is a new explicit Optional layer.

  • Prefer io.k8s.api.autoscaling.v2beta2 over io.k8s.api.autoscaling.v1

    The Kubernetes API exposes multiple versions of various resources, but the default ./package.dhall makes an opinionated attempt to select the most recent stable resource (first preferring production over beta over alpha, and then preferring v2 over v1). However, in certain cases users indicate that the newer beta version is preferable over the older production version and this is one such case.

    Even though io.k8s.api.autoscaling.v1 is no longer the default choice you can still access those resources by explicitly importing them from the ./schemas subdirectory of the desired Kubernetes version (e.g. ./1.17/schemas/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler.dhall)

v3.0.0

22 Jan 17:31
3c6d09a
Compare
Choose a tag to compare

Additions:

  • Generate Dhall schemas for multiple Kubernetes versions
  • Support CustomResourceDefinition in the generator
  • nix-shell support for dhall-kubernetes-generator
  • Improve test coverage for scripts/generate.sh
  • Generator automatically excludes older Kubernetes object versions
  • Add --skipDuplicates CLI flag and handler to the generator
  • Add prefixMap option for specifying external import roots

Cleanup:

  • Update omit-empty command in Readme
  • Remove top-level swagger2.json
  • Minimize unnecessary rebuilds

v2.1.0

08 Dec 07:11
Compare
Choose a tag to compare
  • Add package.dhall
    Adds a top-level package.dhall file which re-exports schemas.dhall and
    IntOrString, making it feasible to use dhall-kubernetes by importing solely
    the package.dhall file.
    Additionally, adds some polish to the documentation.

v2.0.0

29 Nov 21:59
Compare
Choose a tag to compare
  • Switch to API v2

    This is a large change which consists of the following smaller changes:

    • The ./default subdirectory is renamed to ./defaults

    • Add top-level ./types.dhall and ./defaults.dhall files

    • Add a top-level ./typesUnion.dhall union type

      ... this allows you to wrap heterogeneous in this uniform type so that you can store them in a List and render that as a single YAML file containing one document per resource. If you do so, make sure to use the --documents flag of dhall-to-yaml

    • Records of all nullable fields are no longer themselves nullable

    • Make use of the new Optional literal syntax (i.e. Some/None)

    • Default resources are no longer lambdas

    • Remove cyclic imports

    • Support newer versions of Dhall

  • Support Kubernetes 1.14.3

  • Set Cron* types and defaults to v1beta1

  • Add support for "schemas"

    This adds a new ./schemas directory and ./schemas.dhall package to support the :: operator for newer versions of the language. This allows you to ergonomically instantiate a Kubernetes resource while only specifying non-default values.

v1.0.0

02 Apr 13:50
@f-f f-f
Compare
Choose a tag to compare

First release 🎉

dhall-kubernetes logo