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

fix:enh: protect agg against empty gvks #3040

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

acpana
Copy link
Contributor

@acpana acpana commented Oct 6, 2023

Small enhancement to have the aggregator not ingest any empty gvks.

Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e18ebbc) 52.38% compared to head (23a282d) 52.48%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3040      +/-   ##
==========================================
+ Coverage   52.38%   52.48%   +0.09%     
==========================================
  Files         134      134              
  Lines       11948    11952       +4     
==========================================
+ Hits         6259     6273      +14     
+ Misses       5195     5188       -7     
+ Partials      494      491       -3     
Flag Coverage Δ
unittests 52.48% <100.00%> (+0.09%) ⬆️

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

Files Coverage Δ
pkg/cachemanager/aggregator/aggregator.go 78.21% <100.00%> (+0.89%) ⬆️

... and 3 files with indirect coverage changes

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

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

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@sozercan sozercan merged commit d916017 into open-policy-agent:master Oct 10, 2023
15 checks passed
Mattes83 pushed a commit to Mattes83/gatekeeper that referenced this pull request Oct 25, 2023
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
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.

None yet

4 participants