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

Constraint status violations are missing the GV in GVK #2095

Closed
ekitson opened this issue Jun 9, 2022 · 1 comment · Fixed by #2098
Closed

Constraint status violations are missing the GV in GVK #2095

ekitson opened this issue Jun 9, 2022 · 1 comment · Fixed by #2098
Labels
bug Something isn't working

Comments

@ekitson
Copy link

ekitson commented Jun 9, 2022

What steps did you take and what happened:
View the status of a constraint with violations. Each violation has a Kind, Namespace, and Name, but no Group or Version.

What did you expect to happen:
Resources are only uniquely identifiable by their GKNN and most API server requests require GVKNN. It would be helpful to fully identify violating resources.

Anything else you would like to add:
This looks like it may be a couple line fix: https://github.com/open-policy-agent/gatekeeper/blob/master/pkg/audit/manager.go#L90

The updateListEntry struct already has the group and version fields, they just aren't being copied over?

@ekitson ekitson added the bug Something isn't working label Jun 9, 2022
prachirp added a commit to prachirp/gatekeeper that referenced this issue Jun 11, 2022
prachirp added a commit to prachirp/gatekeeper that referenced this issue Jun 13, 2022
@julianKatz
Copy link
Contributor

Would be good to update the docs as well

ChrisFraun pushed a commit to ChrisFraun/gatekeeper that referenced this issue Jun 29, 2022
ChrisFraun pushed a commit to ChrisFraun/gatekeeper that referenced this issue Jun 29, 2022
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this issue Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants