Skip to content
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

Fetch .regal.json capabilites files for Enterprise OPA #1238

Closed
wants to merge 1 commit into from

Conversation

charlieegan3
Copy link
Member

Soon, as part of the Enterprise OPA release process, complete built-ins data will be pushed to the public repo. This will allow Regal to generate rich hover messages and show the correct links to documentation of additional built-ins.

Soon, as part of the Enterprise OPA release process, complete built-ins
data will be pushed to the public repo. This will allow Regal to
generate rich hover messages and show the correct links to documentation
of additional built-ins.

Signed-off-by: Charlie Egan <[email protected]>
@@ -287,7 +287,7 @@ fetch_eopa_caps if {
not eopa_caps_tree[p]

# construct the URL to fetch the content from
r := rq.template("https://raw.githubusercontent.com/StyraInc/enterprise-opa/main/capabilities/{{.tag}}.json", {"tag": t})
r := rq.template("https://raw.githubusercontent.com/StyraInc/enterprise-opa/main/capabilities/{{.tag}}.regal.json", {"tag": t})
Copy link
Member

@srenatus srenatus Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail for old tags, iirc

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not have, since the test to fetch an old tag is based on the file on disk which is renamed to the format as before. However, sounds like we won't be needing now!

@charlieegan3
Copy link
Member Author

Closing as no longer needed.

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