pub struct DeviceTaintSelector {
pub device: Option<String>,
pub device_class_name: Option<String>,
pub driver: Option<String>,
pub pool: Option<String>,
pub selectors: Option<Vec<DeviceSelector>>,
}
Expand description
DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.
Fields§
§device: Option<String>
If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name.
Setting also driver and pool may be required to avoid ambiguity, but is not required.
device_class_name: Option<String>
If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.
driver: Option<String>
If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.
pool: Option<String>
If pool is set, only devices in that pool are selected.
Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.
selectors: Option<Vec<DeviceSelector>>
Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.
Trait Implementations§
Source§impl Clone for DeviceTaintSelector
impl Clone for DeviceTaintSelector
Source§fn clone(&self) -> DeviceTaintSelector
fn clone(&self) -> DeviceTaintSelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceTaintSelector
impl Debug for DeviceTaintSelector
Source§impl DeepMerge for DeviceTaintSelector
impl DeepMerge for DeviceTaintSelector
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.