Skip to content

DRA: Add MatchExpression constraint support for devices #5254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks
geetasg opened this issue Apr 20, 2025 · 2 comments
Open
4 tasks

DRA: Add MatchExpression constraint support for devices #5254

geetasg opened this issue Apr 20, 2025 · 2 comments
Labels
needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one.

Comments

@geetasg
Copy link

geetasg commented Apr 20, 2025

Enhancement Description

DRA supports specifying constraints for device allocation. Currently, it supports the MatchAttribute constraint, which ensures that all selected devices have a specific attribute and that the type and value of this attribute are consistent across these devices. This enhancement proposal aims to add a new MatchExpression constraint that will allow devices to be evaluated against a CEL expression. For example - consider an accelerator architecture where connected devices have sequential identifiers. A MatchExpression constraint can help select a subset of these connected devices. This feature was previously identified as a potential future extension in the original KEP for structured parameters, and this proposal seeks to implement that extension.
Ref: - https://github.com/kubernetes/enhancements/blame/master/keps/sig-node/4381-dra-structured-parameters/README.md#L1597

  • One-line enhancement description (can be used as a release note): Provide a mechanism which compares different devices and returns true if they qualify as an optimal set.
  • Kubernetes Enhancement Proposal: TBD
  • Discussion Link: Discussed in community meeting on 4/15/2025
  • Primary contact (assignee): geetasg
  • Responsible SIGs:
  • Enhancement target (which target equals to which milestone):
    • Alpha release target (x.y): 1.34
    • Beta release target (x.y):
    • Stable release target (x.y):
  • Alpha
    • KEP (k/enhancements) update PR(s):
    • Code (k/k) update PR(s):
    • Docs (k/website) update PR(s):

Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.

@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Apr 20, 2025
@k8s-ci-robot
Copy link
Contributor

There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:

  • /sig <group-name>
  • /wg <group-name>
  • /committee <group-name>

Please see the group list for a listing of the SIGs, working groups, and committees available.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@geetasg geetasg changed the title DRA: MatchExpression ConstraintType DRA: Add MatchExpression constraint support for devices Apr 20, 2025
@geetasg
Copy link
Author

geetasg commented Apr 20, 2025

cc @pohly @dims

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

2 participants