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

return back watch.Deleted event to clients when watch object is removed in OjbectFilters #1995

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

rambohe-ch
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage

/kind feature

What this PR does / why we need it:

ResponseFilter return watch.Deleted event back to clients when Standalone object is filtered to nil in ObjectFilters.

by the way, this feature will be helpful for all ObjectFilters, not only for nodeportisolation filter.

Which issue(s) this PR fixes:

Fixes #1994

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.05%. Comparing base (43704c9) to head (0773528).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1995      +/-   ##
==========================================
+ Coverage   53.03%   53.05%   +0.02%     
==========================================
  Files         176      176              
  Lines       20929    20944      +15     
==========================================
+ Hits        11099    11112      +13     
- Misses       8882     8884       +2     
  Partials      948      948              
Flag Coverage Δ
unittests 53.05% <100.00%> (+0.02%) ⬆️

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.

@Congrool
Copy link
Member

lgtm, but I still have questions for some of the modifications. @rambohe-ch PTAL

Copy link

sonarcloud bot commented Mar 27, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.1% Duplication on New Code

See analysis details on SonarCloud

@rambohe-ch
Copy link
Member Author

@Congrool I have fixed you comments, PTAL

@Congrool
Copy link
Member

/rerun

@Congrool
Copy link
Member

/approve
/lgtm

@Congrool Congrool merged commit c589f8a into openyurtio:master Mar 27, 2024
13 checks passed
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.

[feature request] improve nodeportisolation filter,support listening reduction
2 participants