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: its not necessary add the finalizer in the reconciliation loop. #779

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

jvanz
Copy link
Member

@jvanz jvanz commented Jun 21, 2024

Description

The finalizer used by the Kubewarden controller is added in the webhook for the policy server and policies types. Therefore, it not needed to add it in the reconciliation loop. Furthermore, the deletion reconciliation is able to handle old finalizer as well. So, this change will not cause issues when deleting resources.

@jvanz jvanz self-assigned this Jun 21, 2024
@jvanz jvanz requested a review from a team as a code owner June 21, 2024 17:50
Copy link
Member

@flavio flavio 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

@viccuad viccuad left a comment

Choose a reason for hiding this comment

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

LGTM

The finalizer used by the Kubewarden controller is added in the webhook
for the policy server and policies types. Therefore, it not needed to
add it in the reconciliation loop. Furthermore, the deletion
reconciliation is able to handle old finalizer as well. So, this change
will not cause issues when deleting resources.

Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
@jvanz jvanz force-pushed the donot-add-finalizer-in-reconciliation branch from b5de863 to 79b9aaf Compare June 24, 2024 12:57
Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.39%. Comparing base (030edce) to head (79b9aaf).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #779      +/-   ##
==========================================
- Coverage   74.28%   73.39%   -0.89%     
==========================================
  Files          28       28              
  Lines        1816     1808       -8     
==========================================
- Hits         1349     1327      -22     
- Misses        352      363      +11     
- Partials      115      118       +3     
Flag Coverage Δ
integration-tests 61.22% <ø> (-0.95%) ⬇️
unit-tests 50.19% <ø> (ø)

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.

@flavio flavio added this to the 1.14 milestone Jun 24, 2024
Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

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

LGTM

@flavio flavio merged commit e3750b2 into kubewarden:main Jun 24, 2024
7 checks passed
@jvanz jvanz deleted the donot-add-finalizer-in-reconciliation branch June 24, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants