Skip to content

refactor(node): replace ResourceMetric with v1.ResourceList#192

Merged
cheney-lin merged 1 commit into
kubewharf:mainfrom
zj666-lgtm:feat/use-resourcelist-for-resource-metric
Jun 10, 2026
Merged

refactor(node): replace ResourceMetric with v1.ResourceList#192
cheney-lin merged 1 commit into
kubewharf:mainfrom
zj666-lgtm:feat/use-resourcelist-for-resource-metric

Conversation

@zj666-lgtm

@zj666-lgtm zj666-lgtm commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  1. replace ResourceMetric struct with v1.ResourceList for GenericUsage and NUMAMetricInfo.Usage fields, enabling support for arbitrary resource types beyond cpu/memory
  2. add ResourcePower constant as a new heterogeneous resource name

Test plan

  • existing CNR node metric reporting tests pass

consts: add ResourcePower for heterogeneous resource
@CLAassistant

CLAassistant commented Jun 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@cheney-lin cheney-lin merged commit 96771ad into kubewharf:main Jun 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants