pub struct PodGroupResourceClaim {
pub name: String,
pub resource_claim_name: Option<String>,
pub resource_claim_template_name: Option<String>,
}Expand description
PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup.
It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod’s claim must match all fields of the PodGroup’s claim exactly.
Fields§
§name: StringName uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.
resource_claim_name: Option<String>ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods.
Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.
resource_claim_template_name: Option<String>ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup.
The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in podgroup.status.resourceClaimStatuses.
This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.
Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.
Trait Implementations§
Source§impl Clone for PodGroupResourceClaim
impl Clone for PodGroupResourceClaim
Source§fn clone(&self) -> PodGroupResourceClaim
fn clone(&self) -> PodGroupResourceClaim
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 PodGroupResourceClaim
impl Debug for PodGroupResourceClaim
Source§impl DeepMerge for PodGroupResourceClaim
impl DeepMerge for PodGroupResourceClaim
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other into self.Source§impl Default for PodGroupResourceClaim
impl Default for PodGroupResourceClaim
Source§fn default() -> PodGroupResourceClaim
fn default() -> PodGroupResourceClaim
Source§impl<'de> Deserialize<'de> for PodGroupResourceClaim
impl<'de> Deserialize<'de> for PodGroupResourceClaim
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 PodGroupResourceClaim
impl PartialEq for PodGroupResourceClaim
Source§fn eq(&self, other: &PodGroupResourceClaim) -> bool
fn eq(&self, other: &PodGroupResourceClaim) -> bool
self and other values to be equal, and is used by ==.