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

feat: improve discardcloudservice filter in yurthub component (#1924) #1926

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

huangchenzhao
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

have improved discardcloudservice filter in yurthub component

only discarding LoadBalancer service which has annotation svc.openyurt.io/discard=true, instead of which doesn't have openyurt.io/skip-discard=true.

Which issue(s) this PR fixes:

Fixes #1924

@huangchenzhao huangchenzhao force-pushed the issue1924 branch 2 times, most recently from 02595c9 to 83bbced Compare January 17, 2024 14:23
@huangchenzhao
Copy link
Member Author

It seems unit tests in 'discardcloudservice filter' should be modified to ensure synchronization with the changed code, I will fix it soon.

@rambohe-ch
Copy link
Member

It seems unit tests in 'discardcloudservice filter' should be modified to ensure synchronization with the changed code, I will fix it soon.

yes, unit tests also should be tuned.

Copy link

sonarcloud bot commented Jan 19, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (81d21b7) 52.16% compared to head (e651e7d) 52.19%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1926      +/-   ##
==========================================
+ Coverage   52.16%   52.19%   +0.02%     
==========================================
  Files         172      173       +1     
  Lines       20874    21117     +243     
==========================================
+ Hits        10888    11021     +133     
- Misses       9018     9120     +102     
- Partials      968      976       +8     
Flag Coverage Δ
unittests 52.19% <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.

@huangchenzhao
Copy link
Member Author

It seems unit tests in 'discardcloudservice filter' should be modified to ensure synchronization with the changed code, I will fix it soon.

yes, unit tests also should be tuned.

fixed unit tests.

@rambohe-ch
Copy link
Member

/rerun

2 similar comments
@huangchenzhao
Copy link
Member Author

/rerun

@huangchenzhao
Copy link
Member Author

/rerun

@rambohe-ch
Copy link
Member

/lgtm

@rambohe-ch rambohe-ch added lgtm lgtm approved approved labels Jan 23, 2024
@rambohe-ch rambohe-ch merged commit 25a1fdb into openyurtio:master Jan 23, 2024
13 checks passed
zyjhtangtang pushed a commit to zyjhtangtang/openyurt that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved lgtm lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request]improve discardcloudservice filter in yurthub component
2 participants