/dhis2-im-stacks-2.0

Ideas on DHIS2 instance manager stacks

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Stacks 2.0

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

Draft

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.

stacks

You can adapt the code, watch it change when rerunning the code creating the diagram using

d2 --watch stacks.d2

CUE

I looked into https://cuelang.org/ a tiny bit. See CUE.