openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)
https://openyurt.io
Apache License 2.0
1.68k stars 391 forks source link

feat: add autonomy manager #2033

Closed vie-serendipity closed 4 days ago

vie-serendipity commented 2 months ago

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

rambohe-ch commented 2 months ago

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

vie-serendipity commented 2 months ago

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

codecov[bot] commented 2 months ago

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 ```diff @@ 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](https://app.codecov.io/gh/openyurtio/openyurt/pull/2033/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/openyurtio/openyurt/pull/2033/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | `56.37% <66.31%> (+0.27%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio#carryforward-flags-in-the-pull-request-comment) to find out more.

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

vie-serendipity commented 2 months ago

/rerun

vie-serendipity commented 2 months ago

/rerun

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

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

See analysis details on SonarCloud

rambohe-ch commented 3 weeks ago

@vie-serendipity please fix the conflicting files.

vie-serendipity commented 1 week ago

/rerun

vie-serendipity commented 1 week ago

/rerun

vie-serendipity commented 5 days ago

/rerun

rambohe-ch commented 4 days ago

/LGTM