Show / Hide Table of Contents

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
object
V1WorkloadReference
Implements
IEquatable<V1WorkloadReference>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
Type Name Description
V1WorkloadReference original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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
Type Description
string
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
Type Description
string
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
Type Description
string

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1WorkloadReference?)

Declaration
public virtual bool Equals(V1WorkloadReference? other)
Parameters
Type Name Description
V1WorkloadReference other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1WorkloadReference?, V1WorkloadReference?)

Declaration
public static bool operator ==(V1WorkloadReference? left, V1WorkloadReference? right)
Parameters
Type Name Description
V1WorkloadReference left
V1WorkloadReference right
Returns
Type Description
bool
View Source

operator !=(V1WorkloadReference?, V1WorkloadReference?)

Declaration
public static bool operator !=(V1WorkloadReference? left, V1WorkloadReference? right)
Parameters
Type Name Description
V1WorkloadReference left
V1WorkloadReference right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX