Skip to content

dra: codeorg: simplify device attributes#66

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
ffromani:device-attr-refactor
Mar 9, 2026
Merged

dra: codeorg: simplify device attributes#66
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
ffromani:device-attr-refactor

Conversation

@ffromani
Copy link
Copy Markdown
Contributor

remove temporary variables and add a function whose purpose is to add attributes to enable compatibility with other relevant DRA drivers (dranet for now).

We will keep this function until all the attributes we need get standardized in kubernetes core - or any other mechanism the community will pick.

Unfortunately, at the moment the only way to be compatible with nonstandard attribute is crosscheck from both sides (driver <=> driver) creating a dense compatibility matrix.

This is awkward and scales poorly but it's all we have atm.

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ffromani

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from klueska February 19, 2026 14:06
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 19, 2026
@ffromani
Copy link
Copy Markdown
Contributor Author

this is trivial enough that can fit in 0.1.0 or can be delayed to 0.2.0.

@pravk03
Copy link
Copy Markdown
Contributor

pravk03 commented Feb 20, 2026

Thanks.

/lgtm

/hold (to sync with #65)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 20, 2026
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 20, 2026
@ffromani
Copy link
Copy Markdown
Contributor Author

finally found the reason for apparently random precommit lane failures: #70

Comment thread pkg/driver/dra_hooks.go
coreID := int64(cpu.CoreID)
cpuID := int64(cpu.CpuID)
coreType := cpu.CoreType.String()
deviceAttrs := map[resourceapi.QualifiedName]resourceapi.DeviceAttribute{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe we can also add dra.cpu/smtEnabled here ?. Not sure why we missed earlier.

@pravk03
Copy link
Copy Markdown
Contributor

pravk03 commented Mar 6, 2026

/lgtm

remove temporary variables and add a function whose
purpose is to add attributes to enable compatibility
with other relevant DRA drivers (dranet for now).

We will keep this function until all the attributes we
need get standardized in kubernetes core - or any other
mechanism the community will pick.

Unfortunately, at the moment the only way to be compatible
with nonstandard attribute is crosscheck from both sides
(driver <=> driver) creating a dense compatibility matrix.

This is awkward and scales poorly but it's all we have
for the time being.

Signed-off-by: Francesco Romani <fromani@redhat.com>
@ffromani ffromani force-pushed the device-attr-refactor branch from 50f2b74 to b3e110a Compare March 9, 2026 08:22
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 9, 2026
@ffromani
Copy link
Copy Markdown
Contributor Author

ffromani commented Mar 9, 2026

/hold cancel

this is a QoL improvement till we have #68

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 9, 2026
@pravk03
Copy link
Copy Markdown
Contributor

pravk03 commented Mar 9, 2026

/lgtm

Thanks !!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 9, 2026
@k8s-ci-robot k8s-ci-robot merged commit 6811651 into kubernetes-sigs:main Mar 9, 2026
7 checks passed
@ffromani ffromani deleted the device-attr-refactor branch March 12, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants