mirror of
https://github.com/holos-run/holos.git
synced 2026-03-22 02:05:00 +00:00
Leaf directories can output different kinds of things: 1. Platform specification. A list of components to manage. 2. Kubernetes API Objects suitable for kubectl apply -f- and friends. 3. Helm values to provide to a helm chart to render API objects. This patch adds an output schema and a kind discriminator so the holos cli can figure out what type of output it's working with. This makes it possible to have a single `holos build <directory>` command that does the right thing.
5 lines
81 B
CUE
5 lines
81 B
CUE
package holos
|
|
|
|
// Constrain the output to one of the defined kinds.
|
|
{} & #Output
|