Skip to content

fewlinesco/k8s-cfgenerator

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published