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

Add Policy Report #1229

Merged
merged 99 commits into from
Nov 9, 2020
Merged

Add Policy Report #1229

merged 99 commits into from
Nov 9, 2020

Conversation

realshuting
Copy link
Member

@realshuting realshuting commented Nov 3, 2020

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.

Copy link
Member

@JimBugwadia JimBugwadia left a 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++
Copy link
Member

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)

Copy link
Member Author

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.

@realshuting
Copy link
Member Author

Merge this PR for release candidate, the CLI changes will be merged in this PR.

@realshuting realshuting merged commit 5e07ecc into main Nov 9, 2020
@realshuting realshuting deleted the policyreport branch November 9, 2020 19:26
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] Align params and docs across Helm and YAML installs Support Policy Report CR
3 participants