Skip to content

Commit

Permalink
Added libs for opa (#481)
Browse files Browse the repository at this point in the history
* Added libs for opa

* Added libs for opa

* Update docs/features/insights-cli.md

Co-authored-by: Vitor Rodrigo Vezani <[email protected]>

---------

Co-authored-by: Vitor Rodrigo Vezani <[email protected]>
  • Loading branch information
jdesouza and vitorvezani authored Dec 4, 2024
1 parent 0f18417 commit 661b7c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/features/insights-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ Validation includes:
The `insights-cli validate opa` command requires an OPA policy file, and a Kubernetes manifest file that will be passed as input to the Policy:

```bash
insights-cli validate opa -r not-in-namespace/policy.rego -k test-pod.yaml
insights-cli validate opa -r not-in-namespace/policy.rego -k test-pod.yaml -L ./libs
```
* Note: `--libs-dir` or `-L`: a directory containing additional rego libraries to load. This option is not required, but can be used to load additional rego libraries

Run `insights-cli validate opa --help` for more options when validating Policies.

Expand Down

0 comments on commit 661b7c1

Please sign in to comment.