openyurt icon indicating copy to clipboard operation
openyurt copied to clipboard

intercept kubelet get node request in order to reduce the traffic

Open vie-serendipity opened this issue 9 months ago • 8 comments

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:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

other Note

vie-serendipity avatar May 06 '24 08:05 vie-serendipity

Codecov Report

Attention: Patch coverage is 34.61538% with 17 lines in your changes are missing coverage. Please review.

Project coverage is 55.56%. Comparing base (37addb5) to head (a8cc010). Report is 5 commits behind head on master.

Files Patch % Lines
pkg/yurthub/cachemanager/cache_manager.go 44.44% 8 Missing and 2 partials :warning:
pkg/yurthub/proxy/util/util.go 12.50% 7 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2039      +/-   ##
==========================================
+ Coverage   55.37%   55.56%   +0.18%     
==========================================
  Files         185      186       +1     
  Lines       17821    18079     +258     
==========================================
+ Hits         9869    10046     +177     
- Misses       6934     7009      +75     
- Partials     1018     1024       +6     
Flag Coverage Δ
unittests 55.56% <34.61%> (+0.18%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 06 '24 08:05 codecov[bot]

/rerun

vie-serendipity avatar May 06 '24 10:05 vie-serendipity

/rerun

vie-serendipity avatar May 06 '24 11:05 vie-serendipity

/rerun

vie-serendipity avatar May 06 '24 13:05 vie-serendipity

/rerun

vie-serendipity avatar May 07 '24 01:05 vie-serendipity

/rerun

vie-serendipity avatar May 08 '24 02:05 vie-serendipity

/rerun

vie-serendipity avatar May 08 '24 07:05 vie-serendipity

@rambohe-ch I add a check whether it's the first request after reconnection.

vie-serendipity avatar May 19 '24 02:05 vie-serendipity

/LGTM

rambohe-ch avatar May 23 '24 06:05 rambohe-ch