tag:github.com,2008:https://github.com/dhall-lang/dhall-kubernetes/releasesRelease notes from dhall-kubernetes2023-06-21T01:00:18Ztag:github.com,2008:Repository/104218323/v7.0.02023-06-21T01:05:30Zv7.0.0<ul>
<li>BREAKING CHANGE: <a href="https://github.com/dhall-lang/dhall-kubernetes/pull/178" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/178/hovercard">Narrow many types from <code>Integer</code> to <code>Natural</code></a></li>
<li>Add support for Kubernetes versions 1.22 through 1.26 [<a href="https://github.com/dhall-lang/dhall-kubernetes/pull/179" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/179/hovercard">#179</a> / <a href="https://github.com/dhall-lang/dhall-kubernetes/pull/186" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/186/hovercard">#186</a> / <a href="https://github.com/dhall-lang/dhall-kubernetes/pull/189" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/189/hovercard">#189</a>]</li>
<li><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/186" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/186/hovercard">Upgrade default Kubernetes version to 1.25</a></li>
</ul>Gabriella439tag:github.com,2008:Repository/104218323/v6.0.02021-09-02T05:22:15Zv6.0.0<ul>
<li><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/170" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/170/hovercard">Add support for Kubernetes versions 1.20 and 1.21</a></li>
<li><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/158" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/158/hovercard">Make <code>metadata</code> <code>Optional</code> for non-top-level types</a>
<ul>
<li>See: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="780472855" data-permission-text="Title is private" data-url="https://github.com/dhall-lang/dhall-haskell/issues/2128" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-haskell/pull/2128/hovercard" href="https://github.com/dhall-lang/dhall-haskell/pull/2128">dhall-lang/dhall-haskell#2128</a></li>
</ul>
</li>
<li><a href="https://github.com/dhall-lang/dhall-haskell/pull/2126" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-haskell/pull/2126/hovercard">Support signed OpenAPI integers</a>
<ul>
<li>See: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="778254670" data-permission-text="Title is private" data-url="https://github.com/dhall-lang/dhall-haskell/issues/2126" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-haskell/pull/2126/hovercard" href="https://github.com/dhall-lang/dhall-haskell/pull/2126">dhall-lang/dhall-haskell#2126</a></li>
</ul>
</li>
</ul>Gabriella439tag:github.com,2008:Repository/104218323/v5.0.02021-01-08T02:59:03Zv5.0.0<ul>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/147" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/147/hovercard">Add support for kubernetes API version 1.19</a></p>
</li>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/144" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/144/hovercard">Make the <code>kind</code> and <code>apiVersion</code> fields optional for <code>PersistentVolumeClaim</code></a></p>
</li>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/115" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/115/hovercard">Make <code>ObjectMeta</code>'s <code>name</code> field optional</a></p>
</li>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/137" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/137/hovercard">Switch to using <code>dhall-openapi</code></a></p>
<p>The <code>dhall-kubernetes</code> Haskell package in this repository has been renamed to <code>dhall-openapi</code> and relocated underneath the <a href="https://github.com/dhall-lang/dhall-haskell"><code>dhall-haskell</code> project</a></p>
</li>
</ul>Gabriella439tag:github.com,2008:Repository/104218323/v4.0.02020-04-03T16:23:24Zv4.0.0<ul>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/110" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/110/hovercard">No longer require the <code>--omitEmpty</code> flag to <code>dhall-to-yaml</code></a></p>
<p>The types were changed so that all optional records are explicitly marked <code>Optional</code>.</p>
<p>Before this change, the types were designed around the use of the <code>--omitFlag</code> 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.</p>
<p>Practically, what this means is that you will now need to add a few more <code>Some</code>s in your resource definitions (typically around records) where there is a new explicit <code>Optional</code> layer.</p>
</li>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/113" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/113/hovercard">Prefer <code>io.k8s.api.autoscaling.v2beta2</code> over <code>io.k8s.api.autoscaling.v1</code></a></p>
<p>The Kubernetes API exposes multiple versions of various resources, but the default <code>./package.dhall</code> 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.</p>
<p>Even though <code>io.k8s.api.autoscaling.v1</code> is no longer the default choice you can still access those resources by explicitly importing them from the <code>./schemas</code> subdirectory of the desired Kubernetes version (e.g. <code>./1.17/schemas/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler.dhall</code>)</p>
</li>
</ul>Gabriella439tag:github.com,2008:Repository/104218323/v3.0.02020-01-22T17:31:56Zv3.0.0<p>Additions:</p>
<ul>
<li>Generate Dhall schemas for multiple Kubernetes versions</li>
<li>Support <code>CustomResourceDefinition</code> in the generator</li>
<li><code>nix-shell</code> support for <code>dhall-kubernetes-generator</code></li>
<li>Improve test coverage for <code>scripts/generate.sh</code></li>
<li>Generator automatically excludes older Kubernetes object versions</li>
<li>Add <code>--skipDuplicates</code> CLI flag and handler to the generator</li>
<li>Add prefixMap option for specifying external import roots</li>
</ul>
<p>Cleanup:</p>
<ul>
<li>Update omit-empty command in Readme</li>
<li>Remove top-level <code>swagger2.json</code></li>
<li>Minimize unnecessary rebuilds</li>
</ul>ari-beckertag:github.com,2008:Repository/104218323/v2.1.02019-12-08T07:11:48Zv2.1.0<ul>
<li><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/95" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/95/hovercard">Add package.dhall</a><br>
Adds a top-level <code>package.dhall</code> file which re-exports <code>schemas.dhall</code> and<br>
<code>IntOrString</code>, making it feasible to use <code>dhall-kubernetes</code> by importing solely<br>
the <code>package.dhall</code> file.<br>
Additionally, adds some polish to the documentation.</li>
</ul>ari-beckertag:github.com,2008:Repository/104218323/v2.0.02019-11-29T21:59:16Zv2.0.0<ul>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/57" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/57/hovercard">Switch to API v2</a></p>
<p>This is a large change which consists of the following smaller changes:</p>
<ul>
<li>
<p>The <code>./default</code> subdirectory is renamed to <code>./defaults</code></p>
</li>
<li>
<p>Add top-level <code>./types.dhall</code> and <code>./defaults.dhall</code> files</p>
</li>
<li>
<p>Add a top-level <code>./typesUnion.dhall</code> union type</p>
<p>... this allows you to wrap heterogeneous in this uniform type so that you can store them in a <code>List</code> and render that as a single YAML file containing one document per resource. If you do so, make sure to use the <code>--documents</code> flag of <code>dhall-to-yaml</code></p>
</li>
<li>
<p>Records of all nullable fields are no longer themselves nullable</p>
</li>
<li>
<p>Make use of the new <code>Optional</code> literal syntax (i.e. <code>Some</code>/<code>None</code>)</p>
</li>
<li>
<p>Default resources are no longer lambdas</p>
</li>
<li>
<p>Remove cyclic imports</p>
</li>
<li>
<p>Support newer versions of Dhall</p>
</li>
</ul>
</li>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/72" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/72/hovercard">Support Kubernetes 1.14.3</a></p>
</li>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/88" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/88/hovercard">Set Cron* types and defaults to v1beta1</a></p>
</li>
<li>
<p><a href="https://github.com/dhall-lang/dhall-kubernetes/pull/84" data-hovercard-type="pull_request" data-hovercard-url="/dhall-lang/dhall-kubernetes/pull/84/hovercard">Add support for "schemas"</a></p>
<p>This adds a new <code>./schemas</code> directory and <code>./schemas.dhall</code> package to support the <code>::</code> operator for newer versions of the language. This allows you to ergonomically instantiate a Kubernetes resource while only specifying non-default values.</p>
</li>
</ul>Gabriella439tag:github.com,2008:Repository/104218323/v1.0.02019-04-02T13:50:26Zv1.0.0<p>First release 🎉</p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5480361/55407722-2dce5480-5567-11e9-9720-aba4b4f21bc2.png"><img src="https://user-images.githubusercontent.com/5480361/55407722-2dce5480-5567-11e9-9720-aba4b4f21bc2.png" alt="dhall-kubernetes logo" height="300px" style="max-width: 100%;"></a></p>f-f