Skip to content

Commit cc6aef6

Browse files
authored
Support to Rego v0 and V1 (#493)
* Rego V1 instructions * Rego V1 instructions * Rego V1 instructions * Rego V1 instructions
1 parent fd63c2c commit cc6aef6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/features/insights-cli.md

+8
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ dropsNetRaw(pod) {
132132
}
133133
```
134134

135+
### Rego v0 and v1
136+
We are currently supporting both Rego V0 and V1, but we encourage moving to OPA v1 as V0 is deprecated.
137+
* For more information about [VO upgrade](https://www.openpolicyagent.org/docs/latest/v0-upgrade/)
138+
* How to migrate [How to migrate][https://www.styra.com/blog/renovating-rego/]
139+
140+
When using `insights-cli push opa` you can use parameter rego-version either values v0 or v1:
141+
* Example: `insights-cli push opa --rego-version=v1`
142+
135143
#### Deleting OPA Policies From Insights
136144
By default, the Insights CLI will not _delete_ any OPA policies from Insights. It will
137145
only add or update them.

docs/features/policies.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ meta:
88
Fairwinds Insights comes with over 100 built-in polices that can be used to audit or block resources in your Kubernetes environment or Infrastructure-as-Code.
99
You can also create your own custom policies using Open Policy Agent's (OPA) Rego language.
1010

11+
## Rego V0 and V1
12+
We are currently supporting both Rego V0 and V1, but we encourage moving to OPA v1 as V0 is deprecated.
13+
* For more information about [VO upgrade](https://www.openpolicyagent.org/docs/latest/v0-upgrade/)
14+
* How to migrate [How to migrate][https://www.styra.com/blog/renovating-rego/]
15+
1116
## Configuration
1217
Policy configuration provides a way to globally set default values for any Policies used by any of the Report Tools in Insights. These settings make it easy to customize Insights for common policy scenarios without having to first write Automation Rules.
1318

0 commit comments

Comments
 (0)