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

fix: vap error logging for rego only templates, cherry-pick (#3520) #3525

Closed JaydipGabani closed 2 months ago

JaydipGabani commented 2 months ago

Signed-off-by: martijnvdp m.vanderploeg@nl.ccv.eu Co-authored-by: Jaydipkumar Arvindbhai Gabani gabanijaydip@gmail.com (cherry picked from commit 7429d70bb2b7f688df71dd0f35d49682f3597fe0)

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 #

Special notes for your reviewer:

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (release-3.17@d01aa68). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...onstrainttemplate/constrainttemplate_controller.go 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## release-3.17 #3525 +/- ## =============================================== Coverage ? 48.01% =============================================== Files ? 219 Lines ? 15169 Branches ? 0 =============================================== Hits ? 7284 Misses ? 7070 Partials ? 815 ``` | [Flag](https://app.codecov.io/gh/open-policy-agent/gatekeeper/pull/3525/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/3525/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-policy-agent) | `48.01% <0.00%> (?)` | | 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.