Skip to content

runtime: add ExtraDiscoveryOpts to runtime.Params#7766

Merged
srenatus merged 1 commit intoopen-policy-agent:mainfrom
srenatus:sr/nrrwrqlmxnym
Jul 11, 2025
Merged

runtime: add ExtraDiscoveryOpts to runtime.Params#7766
srenatus merged 1 commit intoopen-policy-agent:mainfrom
srenatus:sr/nrrwrqlmxnym

Conversation

@srenatus
Copy link
Copy Markdown
Contributor

This allows injecting discovery options, such as hooks, or extra factories, into the runtime.

It's useful because when wrapping OPA, you don't want to re-write the runtime package, you want to use it as-is. With this, we can still configure a few internals.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 11, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit e9c185e
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/68710abfd166b9000888bc3a
😎 Deploy Preview https://deploy-preview-7766--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 11, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 23e3bf7
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/68711751f508a4000839254a
😎 Deploy Preview https://deploy-preview-7766--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This allows injecting discovery options, such as hooks, or extra
factories, into the runtime. It's useful because when wrapping OPA, you
don't want to re-write the runtime package, you want to use it as-is.
With this, we can still configure a few internals.


Signed-off-by: Stephan Renatus <stephan@styra.com>
@srenatus srenatus enabled auto-merge (rebase) July 11, 2025 13:53
@srenatus srenatus merged commit eaf10e0 into open-policy-agent:main Jul 11, 2025
31 checks passed
@srenatus srenatus deleted the sr/nrrwrqlmxnym branch July 11, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants