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: add group annotation to WebhookConfiguration and filter watch requests #893

Merged

Conversation

fabriziosestito
Copy link
Contributor

Description

This PR adds a group annotation to ValidatingWebhookConfiguration and MutatingWebhookConfiguration for policy groups, enabling us to filter watch requests sent to the respective reconcilers.

@fabriziosestito fabriziosestito requested a review from a team as a code owner September 23, 2024 14:16
@fabriziosestito fabriziosestito self-assigned this Sep 23, 2024
@fabriziosestito fabriziosestito force-pushed the fix/filter-group-related-webhook-watch branch from fb9fe8a to 5f31d06 Compare September 23, 2024 14:17
Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.53%. Comparing base (71111db) to head (03aff9b).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #893      +/-   ##
==========================================
+ Coverage   70.44%   70.53%   +0.09%     
==========================================
  Files          30       30              
  Lines        2551     2559       +8     
==========================================
+ Hits         1797     1805       +8     
  Misses        584      584              
  Partials      170      170              
Flag Coverage Δ
integration-tests 60.31% <100.00%> (+0.12%) ⬆️
unit-tests 39.21% <ø> (ø)

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

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

Can you extend the unit tests please?

@fabriziosestito fabriziosestito force-pushed the fix/filter-group-related-webhook-watch branch from 9797513 to 03aff9b Compare September 23, 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.

thanks for the tests

@flavio flavio merged commit 04ee88d into kubewarden:main Sep 24, 2024
9 checks passed
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