This release adds two new fields to the Konfiguration
CR that will hopefully make working with external variables and top-level arguments a little less clunky. The existing fields and functionality still work, but you can now utilize Variables.ExtVars
and Varables.TLAVars
to pass an object with arbitrarily typed values. The keys in the object represent the variable names themselves. The simplest example is in the whoami-tla-konfiguration
sample.
apiVersion: jsonnet.io/v1beta1
kind: Konfiguration
metadata:
name: konfiguration-sample
spec:
interval: 30s
prune: true
path: https://github.com/pelotech/jsonnet-controller/raw/main/config/jsonnet/whoami-tla.jsonnet
variables:
tlaVars:
# Name will automatically be treated as a string
name: hello-world
# Port will automatically be treated as code (i.e. a number)
port: 8080