mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 17:25:01 +00:00
Previously we didn't have good documentation on how to manage multiple sets of clusters. This patch adds a clusters topic in the structures category. Each one of the environments, projects, owners, etc... structures follow the same pattern as #Clusters and #ClusterSets, so it makes sense to put them into a dedicated sidebar category for specific CUE structures.
35 lines
585 B
Plaintext
35 lines
585 B
Plaintext
Create a directory for the example `podinfo` component we'll use to render
|
|
platform manifests.
|
|
|
|
```bash
|
|
mkdir -p components/podinfo
|
|
```
|
|
|
|
Create the CUE configuration for the example `podinfo` component.
|
|
|
|
```bash
|
|
cat <<EOF >components/podinfo/podinfo.cue
|
|
```
|
|
```cue showLineNumbers
|
|
package holos
|
|
|
|
holos: Component.BuildPlan
|
|
|
|
Component: #Helm & {
|
|
Name: "podinfo"
|
|
Chart: {
|
|
version: "6.6.2"
|
|
repository: {
|
|
name: "podinfo"
|
|
url: "https://stefanprodan.github.io/podinfo"
|
|
}
|
|
}
|
|
Values: ui: {
|
|
message: string | *"Hello World" @tag(message, type=string)
|
|
}
|
|
}
|
|
```
|
|
```bash
|
|
EOF
|
|
```
|