OPA v0.56.0 #483
johanfylling
announced in
Announcements
OPA v0.56.0
#483
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release contains a mix of new features, bugfixes and a new builtin function.
Support for General References in Rule Heads (Experimental)
A new experimental feature in OPA is support for general refs in rule heads. Where a general ref is a reference with variables at arbitrary locations.
General refs are currently not supported by the OPA planner, making this feature unsupported for Wasm and IR.
Note: this feature is disabled by default, and needs to be enabled by setting the
EXPERIMENTAL_GENERAL_RULE_REFS
environment variable (once the feature is complete - supports Wasm and IR - this requirement will be dropped).Authored by @johanfylling.
New Built-In Function:
numbers.range_step
Similar to the
numbers.range
built-in function,numbers.range_step
returns an array of numbers in a given range. The new built-in function also allows you to control the step between each entry.See the documentation on the new built-in
for all the details.
Authored by @sspaink.
New Ecosystem page on The Website
The OPA Ecosystem of related integrations has been refreshed and moved to a more prominent location on the website.
If you're interested to add any new integrations you've been working on, please see the docs here (updates to existing integrations are very welcome too!).
Runtime, Tooling, SDK
opa test -z
fail with failing tests (#6126) authored by @fdaguinopa test
--ignore
when used together with--bundle
(#6185) authored by @joaobrandt--fail-non-empty
flag toopa exec
(#6153) authored by @Ronnie-personalopa_no_oci
flag to build without containerd (#6159) authored by @slonkaTopdown and Rego
Miscellaneous
Breaking changes
Since its introduction in 0.34.0, the
--exit-zero-on-skipped
option always made theopa test
command return an exit code 0. When used, it now returns the exit code 0 only if no failed tests were found.Test runs on existing projects using
--exit-zero-on-skipped
will fail if any failed tests were inhibited by this behavior.Beta Was this translation helpful? Give feedback.
All reactions