pub struct DeviceClass {
pub metadata: ObjectMeta,
pub spec: DeviceClassSpec,
}
Expand description
DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
Fields§
§metadata: ObjectMeta
Standard object metadata
spec: DeviceClassSpec
Spec defines what can be allocated and how to configure it.
This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
Changing the spec automatically increments the metadata.generation number.
Trait Implementations§
Source§impl Clone for DeviceClass
impl Clone for DeviceClass
Source§fn clone(&self) -> DeviceClass
fn clone(&self) -> DeviceClass
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeviceClass
impl Debug for DeviceClass
Source§impl DeepMerge for DeviceClass
impl DeepMerge for DeviceClass
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceClass
impl Default for DeviceClass
Source§fn default() -> DeviceClass
fn default() -> DeviceClass
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceClass
impl<'de> Deserialize<'de> for DeviceClass
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ListableResource for DeviceClass
impl ListableResource for DeviceClass
Source§impl Metadata for DeviceClass
impl Metadata for DeviceClass
Source§impl PartialEq for DeviceClass
impl PartialEq for DeviceClass
Source§impl Resource for DeviceClass
impl Resource for DeviceClass
Source§const API_VERSION: &'static str = "resource.k8s.io/v1alpha3"
const API_VERSION: &'static str = "resource.k8s.io/v1alpha3"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moreSource§const GROUP: &'static str = "resource.k8s.io"
const GROUP: &'static str = "resource.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
Source§const URL_PATH_SEGMENT: &'static str = "deviceclasses"
const URL_PATH_SEGMENT: &'static str = "deviceclasses"
The URL path segment used to construct URLs related to this resource. Read more
Source§type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
Source§impl Serialize for DeviceClass
impl Serialize for DeviceClass
impl StructuralPartialEq for DeviceClass
Auto Trait Implementations§
impl Freeze for DeviceClass
impl RefUnwindSafe for DeviceClass
impl Send for DeviceClass
impl Sync for DeviceClass
impl Unpin for DeviceClass
impl UnwindSafe for DeviceClass
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
Mutably borrows from an owned value. Read more