open-policy-agent / gatekeeper

🐊 Gatekeeper - Policy Controller for Kubernetes
https://open-policy-agent.github.io/gatekeeper/
Apache License 2.0
3.72k stars 765 forks source link

feat: Add status metric to config #3656

Open abhipatnala opened 1 month ago

abhipatnala commented 1 month ago

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged): Fixes #2918

Special notes for your reviewer:

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 76.92308% with 9 lines in your changes missing coverage. Please review.

Project coverage is 47.82%. Comparing base (3350319) to head (1ce8461). Report is 162 commits behind head on master.

Files with missing lines Patch % Lines
pkg/controller/config/config_controller.go 53.84% 4 Missing and 2 partials :warning:
pkg/controller/config/stats_reporter.go 88.46% 2 Missing and 1 partial :warning:

:exclamation: There is a different number of reports uploaded between BASE (3350319) and HEAD (1ce8461). Click for more details.

HEAD has 1 upload less than BASE | Flag | BASE (3350319) | HEAD (1ce8461) | |------|------|------| |unittests|2|1|
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3656 +/- ## ========================================== - Coverage 54.49% 47.82% -6.68% ========================================== Files 134 222 +88 Lines 12329 18738 +6409 ========================================== + Hits 6719 8961 +2242 - Misses 5116 8936 +3820 - Partials 494 841 +347 ``` | [Flag](https://app.codecov.io/gh/open-policy-agent/gatekeeper/pull/3656/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-policy-agent) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/open-policy-agent/gatekeeper/pull/3656/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-policy-agent) | `47.82% <76.92%> (-6.68%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-policy-agent#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.