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

feat: add metadata via header annotations in rego #324

Merged
merged 4 commits into from
Oct 15, 2022

Conversation

Mattes83
Copy link
Contributor

Hi there,

I am trying to implement a solution for #322.

What do you think?

Best regards

@jpreese
Copy link
Collaborator

jpreese commented Sep 16, 2022

This looks like a strong start to me, @Mattes83. Would you mind adding a test for the generation of annotations?

Easiest may be adding this new metadata to the test folder but you could also add it to one the examples.

Just as long as we're verifying that the comment header in the Rego produces the expected YAML.

internal/rego/rego.go Show resolved Hide resolved
internal/rego/rego.go Show resolved Hide resolved
@jalseth jalseth merged commit f8859b5 into plexsystems:main Oct 15, 2022
@jpreese
Copy link
Collaborator

jpreese commented Oct 19, 2022

@Mattes83 this has been released in v0.24.0

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.

3 participants