Skip to content

rego policy dissimilar results in golang and rego playground #309

Discussion options

You must be logged in to vote

That query looks weird:

rego.Query("data.k8s == true"),

The playground will evaluate the full package extent, i.e. data.k8s, when you don't use "Evaluate Selection" with some rule highlighted.

But that said, I suppose the query you're looking for is probably rego.Query("data.k8s.allow").

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@cylonchau
Comment options

@srenatus
Comment options

@cylonchau
Comment options

Answer selected by anderseknert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants