View on GitHub

uropa

Declarative configuration for Opa

Using multiple files to store configuration

uropa can construct a state by combining multiple JSON or YAML files inside a directory instead of a single file.

In most use case, a single-file will suffice but you might want to use multiple files if:

You can specify an entire directory for uropa to consumer using the --state flag.

Under the hood, uropa combines the YAML/JSON files in a very dumb fashion, meaning it just concatenates the various arrays in the file together, before starting to process the state.

There is no automated way of generating multiple files using uropa. You will have to export the entire configuration using the uropa dump command and then split the configuration into different files as you see fit for your use-case.