Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 924 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 924 Bytes

cfgenerator

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.

Usage

cfgenerator help or read this.

Some examples are also available.

Testing

make test

Docker

make docker-build