Struct k8s_openapi::api::resource::v1alpha3::DeviceClassSpec
source · pub struct DeviceClassSpec {
pub config: Option<Vec<DeviceClassConfiguration>>,
pub selectors: Option<Vec<DeviceSelector>>,
pub suitable_nodes: Option<NodeSelector>,
}
Expand description
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
Fields§
§config: Option<Vec<DeviceClassConfiguration>>
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
They are passed to the driver, but are not considered while allocating the claim.
selectors: Option<Vec<DeviceSelector>>
Each selector must be satisfied by a device which is claimed via this class.
suitable_nodes: Option<NodeSelector>
Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet and that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
Setting this field is optional. If unset, all Nodes are candidates.
This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
Trait Implementations§
source§impl Clone for DeviceClassSpec
impl Clone for DeviceClassSpec
source§fn clone(&self) -> DeviceClassSpec
fn clone(&self) -> DeviceClassSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceClassSpec
impl Debug for DeviceClassSpec
source§impl DeepMerge for DeviceClassSpec
impl DeepMerge for DeviceClassSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for DeviceClassSpec
impl Default for DeviceClassSpec
source§fn default() -> DeviceClassSpec
fn default() -> DeviceClassSpec
source§impl<'de> Deserialize<'de> for DeviceClassSpec
impl<'de> Deserialize<'de> for DeviceClassSpec
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl PartialEq for DeviceClassSpec
impl PartialEq for DeviceClassSpec
source§impl Serialize for DeviceClassSpec
impl Serialize for DeviceClassSpec
impl StructuralPartialEq for DeviceClassSpec
Auto Trait Implementations§
impl Freeze for DeviceClassSpec
impl RefUnwindSafe for DeviceClassSpec
impl Send for DeviceClassSpec
impl Sync for DeviceClassSpec
impl Unpin for DeviceClassSpec
impl UnwindSafe for DeviceClassSpec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)