Skip to main content
Schemaobject

io.k8s.api.resource.v1beta1.DeviceDerivedAttribute

DeviceDerivedAttribute defines a derived attribute computed via CEL.

Source
specs/apis__resource.k8s.io__v1beta1_openapi.json
Revision
9a79c3bd90f7
Active snapshot
2a9112600697
expression string
required

Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named "device", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (su…

name string
required

Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash ("/") followed by a C identifier (e.g. "example.com/numaNode" or "derived/numaNode"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not me…