pub struct ResourceSliceSpec {
pub all_nodes: Option<bool>,
pub devices: Option<Vec<Device>>,
pub driver: String,
pub node_name: Option<String>,
pub node_selector: Option<NodeSelector>,
pub pool: ResourcePool,
}
Expand description
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
Fields§
§all_nodes: Option<bool>
AllNodes indicates that all nodes have access to the resources in the pool.
Exactly one of NodeName, NodeSelector and AllNodes must be set.
devices: Option<Vec<Device>>
Devices lists some or all of the devices in this pool.
Must not have more than 128 entries.
driver: String
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
node_name: Option<String>
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
node_selector: Option<NodeSelector>
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
Must use exactly one term.
Exactly one of NodeName, NodeSelector and AllNodes must be set.
pool: ResourcePool
Pool describes the pool that this ResourceSlice belongs to.
Trait Implementations§
Source§impl Clone for ResourceSliceSpec
impl Clone for ResourceSliceSpec
Source§fn clone(&self) -> ResourceSliceSpec
fn clone(&self) -> ResourceSliceSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ResourceSliceSpec
impl Debug for ResourceSliceSpec
Source§impl DeepMerge for ResourceSliceSpec
impl DeepMerge for ResourceSliceSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.