Description
Im using Dhall to generate Kuberentes and I believe it would be great to have some way to denote a "header" for list.
For example
let this = [ { foo = "this", bar = "that" }, { foo = "fizz", bar = "buzz" } ]
in this
Renders
- bar: that
foo: this
- bar: buzz
foo: fizz
I would be great to have some semantics to say "I want foo as my -
value". This would be really helpful in container definitions, as it would mean we can pin either image
or name
or something meaningful to the list -
. This gets generally set to args
or some other setting which does not identify the container.
Example
let this : Type = { foo |= Text, bar = Text }
This seems like a minor annoyance, but when you have a list with multiple containers and each container with a long list of defined settings, it gets really hard to parse them.
An alternative idea would be to follow the order set by the Type definition if one is specified, which would not work for the previous example, but would allow me to define a type to explicitly set an order.
PS: I think it would be great for Kubernetes to use servicename:
and define these values inside of the key, as its done in Docker Compose.