kubewharf / katalyst-core

Katalyst aims to provide a universal solution to help improve resource utilization and optimize the overall costs in the cloud. This is the core components in Katalyst system, including multiple agents and centralized components
Apache License 2.0
433 stars 107 forks source link

fix(*): adapt to kubelet configz endpoint changes to support K8s 1.28 #691

Closed caohe closed 2 months ago

caohe commented 2 months ago

What type of PR is this?

Bug fixes

What this PR does / why we need it:

Extract the definition of KubeletConfiguration from the kubelet API repository to the katalyst repository to adapt to incompatible changes of kubelet's /configz endpoint which were introduced by https://github.com/kubernetes/kubernetes/pull/117800.

Which issue(s) this PR fixes:

Special notes for your reviewer:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.19%. Comparing base (2333cae) to head (69fafb1). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #691 +/- ## ========================================== + Coverage 56.97% 57.19% +0.21% ========================================== Files 566 566 Lines 54495 54495 ========================================== + Hits 31049 31168 +119 + Misses 19560 19419 -141 - Partials 3886 3908 +22 ``` | [Flag](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/691/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | Coverage Δ | | |---|---|---| | [unittest](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/691/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `57.19% <100.00%> (+0.21%)` | :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=kubewharf#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.