pub struct WorkloadReference {
pub name: String,
pub pod_group: String,
pub pod_group_replica_key: Option<String>,
}Expand description
WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.
Fields§
§name: StringName defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn’t match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.
pod_group: StringPodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn’t match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.
pod_group_replica_key: Option<String>PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.
Trait Implementations§
Source§impl Clone for WorkloadReference
impl Clone for WorkloadReference
Source§fn clone(&self) -> WorkloadReference
fn clone(&self) -> WorkloadReference
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkloadReference
impl Debug for WorkloadReference
Source§impl DeepMerge for WorkloadReference
impl DeepMerge for WorkloadReference
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other into self.