openyurt icon indicating copy to clipboard operation
openyurt copied to clipboard

feat: add autonomy controller and autonomy manager

Open vie-serendipity opened this issue 10 months ago • 7 comments

chore: gci write

chore: add parameter

fix: run autonomy manager asynchronously

fix: disable autonomy manager if it's a cloud node

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:

Supplement autonomy ability.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

vie-serendipity avatar Apr 24 '24 02:04 vie-serendipity

@vie-serendipity Thanks for posting this pull request. it is ready for reviewing or not?

rambohe-ch avatar Apr 26 '24 09:04 rambohe-ch

@rambohe-ch I think it's ready for review, I just need to modify and add more tests.

vie-serendipity avatar Apr 26 '24 09:04 vie-serendipity

Codecov Report

Attention: Patch coverage is 66.31579% with 96 lines in your changes missing coverage. Please review.

Project coverage is 56.37%. Comparing base (3713163) to head (eb9b2ef). Report is 13 commits behind head on master.

Files Patch % Lines
pkg/yurthub/proxy/autonomy/autonomy.go 55.76% 36 Missing and 10 partials :warning:
pkg/yurthub/cachemanager/error_keys.go 79.85% 19 Missing and 8 partials :warning:
pkg/yurthub/cachemanager/cache_manager.go 44.44% 14 Missing and 1 partial :warning:
pkg/yurthub/util/util.go 66.66% 3 Missing and 3 partials :warning:
pkg/yurthub/proxy/local/faketoken.go 0.00% 2 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2033      +/-   ##
==========================================
+ Coverage   56.09%   56.37%   +0.27%     
==========================================
  Files         186      188       +2     
  Lines       18092    18328     +236     
==========================================
+ Hits        10149    10332     +183     
- Misses       6910     6943      +33     
- Partials     1033     1053      +20     
Flag Coverage Δ
unittests 56.37% <66.31%> (+0.27%) :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 Apr 28 '24 13:04 codecov[bot]

/rerun

vie-serendipity avatar Apr 29 '24 12:04 vie-serendipity

/rerun

vie-serendipity avatar Apr 30 '24 05:04 vie-serendipity

@vie-serendipity please fix the conflicting files.

rambohe-ch avatar Jun 18 '24 09:06 rambohe-ch

/rerun

vie-serendipity avatar Jul 05 '24 04:07 vie-serendipity

/rerun

vie-serendipity avatar Jul 08 '24 07:07 vie-serendipity

/rerun

vie-serendipity avatar Jul 10 '24 08:07 vie-serendipity

/LGTM

rambohe-ch avatar Jul 11 '24 15:07 rambohe-ch