-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile: add WithRoots compiler option #6085
Comments
Have you tried using |
I've tried this combination but based on error I've got:
it looked that this option is used when you want to use the content of the already existing bundle to build the bundle. (e.g. combine multiple bundles together). |
Let's say you have a folder with your policy, data and manifest file. Are you saying if you set Adding a |
Previously, bundle roots couldn't be provided and neither .manifest file couldn't be provided, because it was replaced by the .manifest generated by the compiler. Fixes: open-policy-agent#6085 Signed-off-by: Jakub Kulich <jakubkulich@gmail.com>
Previously, bundle roots couldn't be provided and neither .manifest file couldn't be provided, because it was replaced by the .manifest generated by the compiler. Fixes: open-policy-agent#6085 Signed-off-by: Jakub Kulich <jakubkulich@gmail.com>
Previously, bundle roots couldn't be provided and neither .manifest file couldn't be provided, because it was replaced by the .manifest generated by the compiler. Fixes: open-policy-agent#6085 Signed-off-by: Jakub Kulich <jakubkulich@gmail.com>
Previously, bundle roots couldn't be provided and neither .manifest file couldn't be provided, because it was replaced by the .manifest generated by the compiler. Fixes: open-policy-agent#6085 Signed-off-by: Jakub Kulich <jakubkulich@gmail.com>
Previously, bundle roots couldn't be provided and neither .manifest file couldn't be provided, because it was replaced by the .manifest generated by the compiler. Fixes: #6085 Signed-off-by: Jakub Kulich <jakubkulich@gmail.com>
What is the underlying problem you're trying to solve?
I'd like to build an OPA bundle from Go using the compile API (github.com/open-policy-agent/opa/compile) but it's missing the support for providing bundle roots. I've tried to find some workaround for this, but I wasn't successful.
Describe the ideal solution
Ideal situation would be that Go compile API has the same options when building OPA bundles as the OPA CLI's
build
command.Describe a "Good Enough" solution
Adding
WithRoots
compiler option used for specifying bundle's roots.The text was updated successfully, but these errors were encountered: