Show / Hide Table of Contents

Class V1PodFailurePolicyRule

PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.

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

Constructors

View Source

V1PodFailurePolicyRule()

Declaration
public V1PodFailurePolicyRule()
View Source

V1PodFailurePolicyRule(V1PodFailurePolicyRule)

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

Properties

View Source

Action

Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:

  • FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated.
  • FailIndex: indicates that the pod's index is marked as Failed and will not be restarted.
  • Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created.
  • Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.
Declaration
[JsonPropertyName("action")]
public string Action { get; set; }
Property Value
Type Description
string
View Source

EqualityContract

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

OnExitCodes

Represents the requirement on the container exit codes.

Declaration
[JsonPropertyName("onExitCodes")]
public V1PodFailurePolicyOnExitCodesRequirement OnExitCodes { get; set; }
Property Value
Type Description
V1PodFailurePolicyOnExitCodesRequirement
View Source

OnPodConditions

Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.

Declaration
[JsonPropertyName("onPodConditions")]
public IList<V1PodFailurePolicyOnPodConditionsPattern> OnPodConditions { get; set; }
Property Value
Type Description
IList<V1PodFailurePolicyOnPodConditionsPattern>

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

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

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

operator !=(V1PodFailurePolicyRule?, V1PodFailurePolicyRule?)

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

Implements

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