Skip to content

fix:enh: protect agg against empty gvks#3040

Merged
sozercan merged 3 commits into
open-policy-agent:masterfrom
acpana:acpana/fix-agg
Oct 10, 2023
Merged

fix:enh: protect agg against empty gvks#3040
sozercan merged 3 commits into
open-policy-agent:masterfrom
acpana:acpana/fix-agg

Conversation

@acpana
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
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.

4 participants