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

Use ID only for cache deletion. #1020

Merged
merged 1 commit into from
Dec 11, 2020
Merged

Conversation

fedepaol
Copy link
Contributor

What this PR does / why we need it:

When we reconcile deletions, we don't have the full object.
This is causing a panic in parsing. Here we change the Remove method to take the ID of the object instead of the object itself.

When we reconcile deletions, we don't have the full object.
This is causing a panic in parsing. Here we change the Remove method
to take the ID of the object instead of the object itself.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
@fedepaol fedepaol mentioned this pull request Dec 11, 2020
@codecov-io
Copy link

Codecov Report

Merging #1020 (ef38fd4) into master (13bbfd8) will increase coverage by 0.27%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1020      +/-   ##
==========================================
+ Coverage   46.59%   46.86%   +0.27%     
==========================================
  Files          62       62              
  Lines        4024     4024              
==========================================
+ Hits         1875     1886      +11     
+ Misses       1901     1895       -6     
+ Partials      248      243       -5     
Flag Coverage Δ
unittests 46.86% <85.71%> (+0.27%) ⬆️

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

Impacted Files Coverage Δ
pkg/mutation/system.go 82.92% <85.71%> (ø)
...onstrainttemplate/constrainttemplate_controller.go 56.81% <0.00%> (+3.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13bbfd8...ef38fd4. Read the comment docs.

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

@maxsmythe
Copy link
Contributor

@ritazh LGTY? I think this helps your outstanding PR?

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 merged commit 1459e2f into open-policy-agent:master Dec 11, 2020
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