Show / Hide Table of Contents

Class V1alpha3WorkloadSpec

WorkloadSpec defines the desired state of a Workload.

Inheritance
object
V1alpha3WorkloadSpec
Implements
IEquatable<V1alpha3WorkloadSpec>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1alpha3WorkloadSpec : IEquatable<V1alpha3WorkloadSpec>

Constructors

V1alpha3WorkloadSpec()

Declaration
public V1alpha3WorkloadSpec()

V1alpha3WorkloadSpec(V1alpha3WorkloadSpec)

Declaration
protected V1alpha3WorkloadSpec(V1alpha3WorkloadSpec original)
Parameters
Type Name Description
V1alpha3WorkloadSpec original

Properties

CompositePodGroupTemplates

compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.

This field is used only when the CompositePodGroup feature gate is enabled.

Declaration
[JsonPropertyName("compositePodGroupTemplates")]
public IList<V1alpha3CompositePodGroupTemplate> CompositePodGroupTemplates { get; set; }
Property Value
Type Description
IList<V1alpha3CompositePodGroupTemplate>

ControllerRef

controllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. This field is immutable.

Declaration
[JsonPropertyName("controllerRef")]
public V1alpha3TypedLocalObjectReference ControllerRef { get; set; }
Property Value
Type Description
V1alpha3TypedLocalObjectReference

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

PodGroupTemplates

podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.

Declaration
[JsonPropertyName("podGroupTemplates")]
public IList<V1alpha3PodGroupTemplate> PodGroupTemplates { get; set; }
Property Value
Type Description
IList<V1alpha3PodGroupTemplate>

Methods

Equals(object?)

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

Equals(V1alpha3WorkloadSpec?)

Declaration
public virtual bool Equals(V1alpha3WorkloadSpec? other)
Parameters
Type Name Description
V1alpha3WorkloadSpec other
Returns
Type Description
bool

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V1alpha3WorkloadSpec?, V1alpha3WorkloadSpec?)

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

operator !=(V1alpha3WorkloadSpec?, V1alpha3WorkloadSpec?)

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

Implements

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