Show / Hide Table of Contents

Class V1SuccessPolicy

SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.

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

Constructors

V1SuccessPolicy()

Declaration
public V1SuccessPolicy()

V1SuccessPolicy(V1SuccessPolicy)

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

Properties

EqualityContract

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

Rules

rules represents the list of alternative rules for the declaring the Jobs as successful before .status.succeeded >= .spec.completions. Once any of the rules are met, the "SuccessCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.

Declaration
[JsonPropertyName("rules")]
public IList<V1SuccessPolicyRule> Rules { get; set; }
Property Value
Type Description
IList<V1SuccessPolicyRule>

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(V1SuccessPolicy?)

Declaration
public virtual bool Equals(V1SuccessPolicy? other)
Parameters
Type Name Description
V1SuccessPolicy 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 ==(V1SuccessPolicy?, V1SuccessPolicy?)

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

operator !=(V1SuccessPolicy?, V1SuccessPolicy?)

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

Implements

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