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 Namespace scope when extracting raw from the admission request #1718

Merged
merged 1 commit into from Mar 17, 2021

Conversation

realshuting
Copy link
Member

@realshuting realshuting commented Mar 17, 2021

Signed-off-by: Shuting Zhao shutting06@gmail.com

Related issue

Fixes #1437.

What type of PR is this

/kind bug

Proposed changes

While investigating 1437, I noticed that request.Namespace is set for kind Namespace, thus it results in incorrect policy reports (for Namespace kind only). This PR fixes the scope of the type Namespace.

Checklist

Further comments

Signed-off-by: Shuting Zhao <shutting06@gmail.com>
@realshuting realshuting changed the title Fix Namespace scope when extracting from the admission request Fix Namespace scope when extracting raw from the admission request Mar 17, 2021
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.

[BUG] deleting namespace create cluster policy report
2 participants