Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Always load builtin Rego modules first. #24

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Nov 1, 2020

When validating Rego policies and running tests, ensure that the builtin
modules are always loaded. This lets user-specified policies depend on
them, which can make tests more succinct.

This fixes #22.

Signed-off-by: James Peach jpeach@vmware.com

When validating Rego policies and running tests, ensure that the builtin
modules are always loaded. This lets user-specified policies depend on
them, which can make tests more succinct.

This fixes projectcontour#22.

Signed-off-by: James Peach <jpeach@vmware.com>
Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM, this makes sense.

@jpeach jpeach merged commit 7a11adc into projectcontour:main Nov 2, 2020
@jpeach jpeach deleted the load-builtins-check branch November 2, 2020 03:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Builtins are missing from initial policy loader
2 participants