pub struct ResourceClaim {
pub metadata: ObjectMeta,
pub spec: ResourceClaimSpec,
pub status: Option<ResourceClaimStatus>,
}
Expand description
ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
Fields§
§metadata: ObjectMeta
Standard object metadata
spec: ResourceClaimSpec
Spec describes what is being requested and how to configure it. The spec is immutable.
status: Option<ResourceClaimStatus>
Status describes whether the claim is ready to use and what has been allocated.
Trait Implementations§
Source§impl Clone for ResourceClaim
impl Clone for ResourceClaim
Source§fn clone(&self) -> ResourceClaim
fn clone(&self) -> ResourceClaim
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 ResourceClaim
impl Debug for ResourceClaim
Source§impl DeepMerge for ResourceClaim
impl DeepMerge for ResourceClaim
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ResourceClaim
impl Default for ResourceClaim
Source§fn default() -> ResourceClaim
fn default() -> ResourceClaim
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceClaim
impl<'de> Deserialize<'de> for ResourceClaim
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 ResourceClaim
impl ListableResource for ResourceClaim
Source§impl Metadata for ResourceClaim
impl Metadata for ResourceClaim
Source§impl PartialEq for ResourceClaim
impl PartialEq for ResourceClaim
Source§impl Resource for ResourceClaim
impl Resource for ResourceClaim
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 = "resourceclaims"
const URL_PATH_SEGMENT: &'static str = "resourceclaims"
The URL path segment used to construct URLs related to this resource. Read more
Source§type Scope = NamespaceResourceScope
type Scope = NamespaceResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
Source§impl Serialize for ResourceClaim
impl Serialize for ResourceClaim
impl StructuralPartialEq for ResourceClaim
Auto Trait Implementations§
impl Freeze for ResourceClaim
impl RefUnwindSafe for ResourceClaim
impl Send for ResourceClaim
impl Sync for ResourceClaim
impl Unpin for ResourceClaim
impl UnwindSafe for ResourceClaim
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