-
Notifications
You must be signed in to change notification settings - Fork 784
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
Add Policy Report #1229
Add Policy Report #1229
Conversation
…erno into feature/reports-cli
…- remove reportRequests after merged to report
…equest to clusterReportChangeRequest
# Conflicts: # pkg/utils/util.go
clean up policy violation code - remove pvGenerator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! one minor comment...
case report.StatusPass: | ||
summary.Pass += len(res.Resources) | ||
case report.StatusFail: | ||
summary.Fail++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this also include all resources?
summary.Fail+= len(res.Resources)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package pkg/kyverno/apply
implements policy report generated by CLI, I believe it's changed in another PR. I'll check with @NoSkillGirl and send a patch if it's still there.
Merge this PR for release candidate, the CLI changes will be merged in this PR. |
Fixes #1215.
Closes #982, added PolicyReport, design doc https://hackmd.io/rCav-hkuQ0yOCzzdnRivYQ?view.
The policy report is enabled by default in v1.3.0 (no flag is needed), and policy violations are no longer supported in this version.
Track #1227 for violation clean up.