Struct k8s_openapi::api::resource::v1alpha3::ResourceSliceSpec
source · 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
.source§impl Default for ResourceSliceSpec
impl Default for ResourceSliceSpec
source§fn default() -> ResourceSliceSpec
fn default() -> ResourceSliceSpec
source§impl<'de> Deserialize<'de> for ResourceSliceSpec
impl<'de> Deserialize<'de> for ResourceSliceSpec
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 ResourceSliceSpec
impl PartialEq for ResourceSliceSpec
source§impl Serialize for ResourceSliceSpec
impl Serialize for ResourceSliceSpec
impl StructuralPartialEq for ResourceSliceSpec
Auto Trait Implementations§
impl Freeze for ResourceSliceSpec
impl RefUnwindSafe for ResourceSliceSpec
impl Send for ResourceSliceSpec
impl Sync for ResourceSliceSpec
impl Unpin for ResourceSliceSpec
impl UnwindSafe for ResourceSliceSpec
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
)