Class V1WorkloadReference
WorkloadReference identifies the Workload object and PodGroup membership that a
Pod belongs to. The scheduler uses this information to apply workload-aware
scheduling semantics.
Inheritance
V1WorkloadReference
Assembly: KubernetesClient.dll
Syntax
public record V1WorkloadReference : IEquatable<V1WorkloadReference>
Constructors
View Source
V1WorkloadReference()
Declaration
public V1WorkloadReference()
View Source
V1WorkloadReference(V1WorkloadReference)
Declaration
protected V1WorkloadReference(V1WorkloadReference original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Name
Name 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.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
PodGroup
PodGroup 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.
Declaration
[JsonPropertyName("podGroup")]
public string PodGroup { get; set; }
Property Value
View Source
PodGroupReplicaKey
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.
Declaration
[JsonPropertyName("podGroupReplicaKey")]
public string PodGroupReplicaKey { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1WorkloadReference?)
Declaration
public virtual bool Equals(V1WorkloadReference? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1WorkloadReference?, V1WorkloadReference?)
Declaration
public static bool operator ==(V1WorkloadReference? left, V1WorkloadReference? right)
Parameters
Returns
View Source
operator !=(V1WorkloadReference?, V1WorkloadReference?)
Declaration
public static bool operator !=(V1WorkloadReference? left, V1WorkloadReference? right)
Parameters
Returns
Implements