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
V1PodFailurePolicyRule
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
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
OnExitCodes
Represents the requirement on the container exit codes.
Declaration
[JsonPropertyName("onExitCodes")]
public V1PodFailurePolicyOnExitCodesRequirement OnExitCodes { get; set; }
Property Value
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1PodFailurePolicyRule?)
Declaration
public virtual bool Equals(V1PodFailurePolicyRule? 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 ==(V1PodFailurePolicyRule?, V1PodFailurePolicyRule?)
Declaration
public static bool operator ==(V1PodFailurePolicyRule? left, V1PodFailurePolicyRule? right)
Parameters
Returns
View Source
operator !=(V1PodFailurePolicyRule?, V1PodFailurePolicyRule?)
Declaration
public static bool operator !=(V1PodFailurePolicyRule? left, V1PodFailurePolicyRule? right)
Parameters
Returns
Implements