pub struct ResourceStatus {
pub name: String,
pub resources: Option<Vec<ResourceHealth>>,
}Expand description
ResourceStatus represents the status of a single resource allocated to a Pod.
Fields§
§name: StringName of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be “claim:<claim_name>/<request>”. When this status is reported about a container, the “claim_name” and “request” must match one of the claims of this container.
resources: Option<Vec<ResourceHealth>>List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.
Trait Implementations§
Source§impl Clone for ResourceStatus
impl Clone for ResourceStatus
Source§fn clone(&self) -> ResourceStatus
fn clone(&self) -> ResourceStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceStatus
impl Debug for ResourceStatus
Source§impl DeepMerge for ResourceStatus
impl DeepMerge for ResourceStatus
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other into self.Source§impl Default for ResourceStatus
impl Default for ResourceStatus
Source§fn default() -> ResourceStatus
fn default() -> ResourceStatus
Source§impl<'de> Deserialize<'de> for ResourceStatus
impl<'de> Deserialize<'de> for ResourceStatus
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 ResourceStatus
impl PartialEq for ResourceStatus
Source§fn eq(&self, other: &ResourceStatus) -> bool
fn eq(&self, other: &ResourceStatus) -> bool
self and other values to be equal, and is used by ==.