Small tool in charge of reading a JSONNET from STDIN
and output a JSON
in STDOUT
.
It accepts a list of paths as parameter and read all the files it can found.
For each file it defines an ExtVar
based on the file name for the variable name and the content of the file for its value.
It's convenient in a Kubernetes context where we have all the configuration in ConfigMap
and Secret
but prefer a file to configure our applications.
We can mount the configurations as volumes and use a JSONNET template as input to produce the desired configuration file.
cfgenerator help
or read this.
Some examples are also available.
make test
make docker-build