Skip to content

v0.0.9

Latest
Compare
Choose a tag to compare
@tinyzimmer tinyzimmer released this 02 Jul 06:30
· 9 commits to main since this release
7ab44aa

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