This repo is just to play with different ideas contributing to https://github.com/dhis2-sre/im-manager Stacks 2.0.
Directory
- draft - is a playground investigating a path without using cue
- cue - is a playground investigating https://cuelang.org
Browse the code in draft. Pick a stack chain and run a dummy deployment using
go run main.go
The dummy deployment shows how parameters can be consumed from a required stack (linked or chain).
The types for stacks and parameters are in in stack.go. main.go shows you some dummy scenarios or uses.
A simple diagram of our stacks is created using https://d2lang.com/tour/install.
You can adapt the code, watch it change when rerunning the code creating the diagram using
d2 --watch stacks.d2
I looked into https://cuelang.org/ a tiny bit. See CUE.