Files
Adrian Duke 620a1ec697 simulation: Introduce particle CUE module for radicle-node
Adds a `radicle-node` particle CUE module to simulation. Partial for
brevity in review as the `cue.mod` files found in the NEXT commit are
less relevant and autogenerated by Timoni + CUE.

Creates a set of roles: `peer`, `seed`, `bootstrap` that can be arranged
into toplogies for deployment in a k8s system. Images are provided by
Radicle Garden via quay.io.
2026-05-11 12:53:17 +01:00

19 lines
337 B
CUE

package templates
import (
"encoding/json"
corev1 "k8s.io/api/core/v1"
)
#ConfigMap: corev1.#ConfigMap & {
#config: #Config
#name: string
#group: #NodeGroup
apiVersion: "v1"
kind: "ConfigMap"
metadata: (#config.#Meta & {name: #name + "-config"}).out
data: {
"config.json": json.Marshal(#group.radicleConfig)
}
}