Skip to content

Commit

Permalink
docs: Add an example of a manifest with attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
  • Loading branch information
ashutosh-narkar committed Jul 23, 2024
1 parent a793f27 commit 959f9e5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/content/management-bundles.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,21 @@ Another example, this time showing a Wasm module configured for
}
```

For example, the manifest below specifies the global Rego version for the bundle using the `rego_version` field and
uses the `file_rego_versions` field for overrides. This manifest describes a bundle that follows the OPA v1.0 syntax
expect for policy files `/policy1.rego` and those under the folder `foo`.

```json
{
"revision" : "7864d60dd78d748dbce54b569e939f5b0dc07486",
"rego_version": 1,
"file_rego_versions": {
"/foo/*.rego": 0,
"/policy1.rego": 0
}
}
```

__Some important details for bundle files:__

* OPA will only load data files named `data.json` or `data.yaml` (which contain
Expand Down

0 comments on commit 959f9e5

Please sign in to comment.