Class V1PodFailurePolicyRule
java.lang.Object
io.kubernetes.client.openapi.models.V1PodFailurePolicyRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T21:37:40.170033Z[Etc/UTC]")
public class V1PodFailurePolicyRule
extends Object
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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOnPodConditionsItem
(V1PodFailurePolicyOnPodConditionsPattern onPodConditionsItem) boolean
Specifies the action taken on a pod failure when the requirements are satisfied.Get onExitCodesRepresents the requirement on the pod conditions.int
hashCode()
onExitCodes
(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) onPodConditions
(List<V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) void
void
setOnExitCodes
(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) void
setOnPodConditions
(List<V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) toString()
-
Field Details
-
SERIALIZED_NAME_ACTION
- See Also:
-
SERIALIZED_NAME_ON_EXIT_CODES
- See Also:
-
SERIALIZED_NAME_ON_POD_CONDITIONS
- See Also:
-
-
Constructor Details
-
V1PodFailurePolicyRule
public V1PodFailurePolicyRule()
-
-
Method Details
-
action
-
getAction
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. This value is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). - 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.- Returns:
- action
-
setAction
-
onExitCodes
-
getOnExitCodes
Get onExitCodes- Returns:
- onExitCodes
-
setOnExitCodes
-
onPodConditions
public V1PodFailurePolicyRule onPodConditions(List<V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) -
addOnPodConditionsItem
public V1PodFailurePolicyRule addOnPodConditionsItem(V1PodFailurePolicyOnPodConditionsPattern onPodConditionsItem) -
getOnPodConditions
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.- Returns:
- onPodConditions
-
setOnPodConditions
-
equals
-
hashCode
public int hashCode() -
toString
-