An example directory when working with Konstraint
The constraint.yaml and template.yaml files in each example policy folder were auto-generated by running the following command from the root of the repository:
$ konstraint create examplesThe policies.md file was auto-generated by running the following command from the root of the repository:
$ konstraint doc examples --output examples/policies.mdThe policies-no-rego.md file was auto-generated by running the following command from the root of the repository:
$ konstraint doc examples --no-rego --output examples/policies-no-rego.mdThe lib folder is a Rego library to assist with writing policies for Kubernetes resources.
To use the library in your own project, you can use the pull command with Conftest.
$ conftest pull github.com/plexsystems/konstraint/examples/lib -p libAlternatively, the .rego files can be manually copied to your lib directory.