open-policy-agent / gatekeeper

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

feat: add generate operation and wait for VAPB generation #3573

Closed JaydipGabani closed 2 weeks ago

JaydipGabani 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 #3659 Related #3501

Special notes for your reviewer:

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 27.94118% with 196 lines in your changes missing coverage. Please review.

Project coverage is 47.64%. Comparing base (3350319) to head (a6ac8fd). Report is 173 commits behind head on master.

Files with missing lines Patch % Lines
pkg/controller/constraint/constraint_controller.go 0.00% 118 Missing :warning:
...onstrainttemplate/constrainttemplate_controller.go 49.35% 60 Missing and 18 partials :warning:

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

HEAD has 1 upload less than BASE | Flag | BASE (3350319) | HEAD (a6ac8fd) | |------|------|------| |unittests|2|1|
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3573 +/- ## ========================================== - Coverage 54.49% 47.64% -6.85% ========================================== Files 134 236 +102 Lines 12329 19786 +7457 ========================================== + Hits 6719 9428 +2709 - Misses 5116 9476 +4360 - Partials 494 882 +388 ``` | [Flag](https://app.codecov.io/gh/open-policy-agent/gatekeeper/pull/3573/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/3573/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-policy-agent) | `47.64% <27.94%> (-6.85%)` | :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.