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

Fix by-name namespace matching #419

Merged
merged 2 commits into from
Jan 23, 2020

Conversation

maxsmythe
Copy link
Contributor

Part of the reason namespace selectors needed to be fixed
is that "Namespace" isn't populated in an admission request
if the request is for a namespace. Also, "Name" isn't populated
in the admission request for namespace requests.

Signed-off-by: Max Smythe smythe@google.com

pkg/target/regolib/src.rego Outdated Show resolved Hide resolved
Part of the reason namespace selectors needed to be fixed
is that "Namespace" isn't populated in an admission request
if the request is for a namespace. Also, "Name" isn't populated
in the admission request for namespace requests.

Signed-off-by: Max Smythe <smythe@google.com>
@maxsmythe
Copy link
Contributor Author

@ritazh Explanation SGTY?

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@maxsmythe maxsmythe merged commit a297913 into open-policy-agent:master Jan 23, 2020
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