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

chore: update operation generate in deployment yaml and add docs #3738

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

JaydipGabani
Copy link
Contributor

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:

Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
@JaydipGabani JaydipGabani requested a review from a team as a code owner December 12, 2024 00:58

__--operation key:__ `generate`

This operation serves .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incomplete?

* The ability to create CRDs (unfortunately RBAC doesn't have the syntax to scope this down to just CRDs in the `constraints.gatekeeper.sh` group)
* The ability to read all `Constraint` resources (members of the group `constraints.gatekeeper.sh`)
* The ability to read all `ValidatingAdmissionPolicy` objects
* The ability to read all `ValidatingAdmissionPolicyBinding` objects
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vap and vapb should be "write"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it

Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
@JaydipGabani JaydipGabani requested a review from ritazh December 12, 2024 16:56

__--operation key:__ `generate`

This operation enables CRD and VAP/VAPB generation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This operation enables CRD and VAP/VAPB generation.
This operation enables CRD and VAP/VAPB generation.
To avoid write contention, the Generate operation should be run as a singleton.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I fixed it. Do we want to cut 3.18.1 to update deploy/gatekeeper.yaml?

@JaydipGabani JaydipGabani requested a review from a team December 12, 2024 18:34
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
@JaydipGabani JaydipGabani requested a review from ritazh December 12, 2024 19:21
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.54%. Comparing base (3350319) to head (49d683b).
Report is 214 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (3350319) and HEAD (49d683b). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3350319) HEAD (49d683b)
unittests 2 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3738      +/-   ##
==========================================
- Coverage   54.49%   47.54%   -6.95%     
==========================================
  Files         134      236     +102     
  Lines       12329    19923    +7594     
==========================================
+ Hits         6719     9473    +2754     
- Misses       5116     9556    +4440     
- Partials      494      894     +400     
Flag Coverage Δ
unittests 47.54% <ø> (-6.95%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ritazh ritazh changed the title chore: adding docs for operation: generate chore: update operation generate in deployment yaml and add docs Dec 14, 2024
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JaydipGabani JaydipGabani merged commit 5471e96 into open-policy-agent:master Dec 16, 2024
20 checks passed
@JaydipGabani JaydipGabani deleted the docs-op-generate branch December 16, 2024 19:48
JaydipGabani added a commit to JaydipGabani/gatekeeper that referenced this pull request Dec 16, 2024
…n-policy-agent#3738)

Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
(cherry picked from commit 5471e96)
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.

4 participants