Commit Graph

18 Commits

Author SHA1 Message Date
Gabriella Gonzalez
6172560fb9 Fix handling of additionalProperties
By pulling in the change from https://github.com/dhall-lang/dhall-haskell/pull/2343
2021-12-02 18:08:42 -08:00
Gabriel Gonzalez
2ed2ffd073
Improve user experience for generating files (#165)
This improves the documentation and scripts responsible for
generating files.  The main changes from the user's point of view
are:

* The `generate` script now supports four subcommands:

  * `generate kubernetes` - Generate all Kubernetes bindings
  * `generate examples` - Generate examples for the preferred Kubernetes version
  * `generate readme` - Generate the README from the Dhall template
  * `generate preferred` - Generate top-level files that re-export the preferred
    Kubernetes version

  The `generate` script without arguments generates everything

* Generation should be faster and more incremental now

  For example, regenerating the `README` by itself should go more quickly since
  it no longer requires regenerating any examples or Kubernetes bindings if
  they haven't changed

This required overhauling the internal Nix code for generating these files
to support more granular builds.

Another consequence of this change is that the preferred Kubernetes
version no longer packages `Prelude.dhall`, `README.dhall` or the
`examples`.  Those are now only stored within the top-level directory.
2021-03-23 11:32:34 -07:00
Will Sewell
2b6210de20
Update dhall-openapi and regenerate (#162)
Includes changes from https://github.com/dhall-lang/dhall-haskell/pull/2126
and https://github.com/dhall-lang/dhall-haskell/pull/2137.
2021-01-17 12:21:24 +00:00
Will Sewell
4dd75dd735
Update docs/README.md.dhall to match README.md (#159)
In a63120cd21 and
3fdb6ca551 README.md had been
updated directly, without updating the "source"
docs/README.md.dhall. This commit rectifies that.
2021-01-16 21:24:15 -08:00
Will Sewell
079178f537
Update dhall-openapi (#158)
* Fetch latest versions of kubernetes

* Update dhall-openapi and regenerate
2021-01-15 09:10:08 -08:00
Gabriel Gonzalez
a4126b7f8f
Fix apiVersion/kind defaults for PersistentVolumeClaim (#155) 2020-10-31 19:51:58 -07:00
Simon Zeng
3367b683fa
Remove unused script from documentation generation (#152)
scripts/convert.py is no longer in use - references to it should be
removed from the README
2020-10-30 08:26:18 -07:00
Gabriel Gonzalez
3f1d8cc224
Fix README instructions (#151) 2020-10-03 14:53:09 -07:00
Tristan de Cacqueray
1582db1513
Prelude: update safety-guarantees documentation link (#149) 2020-10-01 09:17:20 -07:00
Gabriel Gonzalez
ad3369f9f9
Fix PersistentVolumeClaim (#144)
Fixes https://github.com/dhall-lang/dhall-kubernetes/issues/136
2020-09-07 21:30:28 -07:00
Gabriel Gonzalez
59132b47b7
Fix examples to use remote imports (#142)
Fixes https://github.com/dhall-lang/dhall-kubernetes/issues/140
2020-08-28 07:44:06 -07:00
Tristan de Cacqueray
49fabcc9a1
Update to latest dhall to escape reserved keywords (#127)
This change updates the dhall-kubernetes-generator to use the latest dhall
version so that attribute named after reserved keywords are properly escape.
See: https://github.com/dhall-lang/dhall-haskell/issues/1896
2020-06-30 13:02:32 -07:00
Gabriel Gonzalez
fc275e649b
Make ObjectMeta's name field optional (#115)
Supersedes https://github.com/dhall-lang/dhall-kubernetes/pull/85
2020-04-24 12:46:00 -07:00
Gabriel Gonzalez
506d633e38
Prefer autoscaler/v2beta2 (#113)
Fixes https://github.com/dhall-lang/dhall-kubernetes/issues/112
2020-02-28 09:02:14 -08:00
Gabriel Gonzalez
381306bcc3
Go back to using --omitNull instead of --omitEmpty (#110)
Fixes https://github.com/dhall-lang/dhall-kubernetes/issues/86

The motivation of this is to more accurately model the Kubernetes
API semantics by not auto-omitting empty fields.  This is because
a field set to `Some ([] : List T)` is not necessarily the same
as `None (List T)`.

This makes the typical case a bit more verbose (more `Some`s), but
the difference to the `./examples` shows that it's not too bad.
2020-01-31 06:52:20 -08:00
Gabriel Gonzalez
3e160f4a27
Upgrade to dhall-1.29.0 (#109)
The main motivation for the upgrade is to take advantage of the
improved formatting for example code
2020-01-30 07:23:13 -08:00
Gabriel Gonzalez
90c1eb8851
Minimize unnecessary rebuilds (#105)
This improves the granularity of the Nix build graph in order to minimize
unnecessary rebuilds.

This also fixed several bugs in the package generation along the way, so
this change includes those fixes.
2020-01-14 07:35:36 -08:00
Gabriel Gonzalez
a8ffffc4cb
Generate Dhall schemas for multiple Kubernetes versions (#104)
Fixes https://github.com/dhall-lang/dhall-kubernetes/issues/75

This also changes the default version to the latest version to 1.17 since now
users can access older versions
2020-01-12 15:00:56 -08:00