kubewharf / kubeadmiral

Multi-Cluster Kubernetes Orchestration
Apache License 2.0
658 stars 89 forks source link

feat: add support for katalyst #310

Closed JackZxj closed 5 months ago

JackZxj commented 6 months ago

Two new parameters have been added to support katalyst:

After enabling katalyst support, if any member cluster supports katalyst, you can add the following annotation to it's fcluster to collect CNR information: kubectl annotate fcluster kubeadmiral-member-1 kubeadmiral.io/cluster-resource-plugins="[\"node.katalyst.kubewharf.io\"]" --overwrite

codecov[bot] commented 6 months ago

Codecov Report

Attention: 192 lines in your changes are missing coverage. Please review.

Comparison is base (cef22e2) 32.99% compared to head (f0394c7) 33.06%.

Files Patch % Lines
pkg/controllers/federatedcluster/clusterstatus.go 0.00% 134 Missing :warning:
pkg/controllers/federatedcluster/controller.go 0.00% 15 Missing :warning:
...kg/controllers/federatedcluster/plugins/plugins.go 61.53% 10 Missing :warning:
...g/controllers/federatedcluster/plugins/katalyst.go 83.67% 6 Missing and 2 partials :warning:
pkg/controllers/scheduler/schedulingunit.go 0.00% 7 Missing and 1 partial :warning:
...amework/plugins/katalyst/katalystresourcesexist.go 78.94% 4 Missing :warning:
pkg/util/resource/resource.go 0.00% 4 Missing :warning:
...cheduler/framework/plugins/clusterresources/fit.go 66.66% 2 Missing and 1 partial :warning:
...controllers/scheduler/framework/plugins/rsp/rsp.go 0.00% 1 Missing and 2 partials :warning:
pkg/controllers/scheduler/profile.go 0.00% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #310 +/- ## ========================================== + Coverage 32.99% 33.06% +0.06% ========================================== Files 152 155 +3 Lines 17595 17876 +281 ========================================== + Hits 5805 5910 +105 - Misses 11303 11471 +168 - Partials 487 495 +8 ``` | [Flag](https://app.codecov.io/gh/kubewharf/kubeadmiral/pull/310/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/kubewharf/kubeadmiral/pull/310/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `33.06% <39.24%> (+0.06%)` | :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.