Class V1PodFailurePolicyRule
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PodFailurePolicyRule
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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
ConstructorDescriptionV1PodFailurePolicyRule
(String action, List<@Valid V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) -
Method Summary
Modifier and TypeMethodDescriptionSet action in a chainable fashion.addonPodConditionsItem
(V1PodFailurePolicyOnPodConditionsPattern onPodConditionsItem) Add an item to the onPodConditions property in a chainable fashion.boolean
Specifies the action taken on a pod failure when the requirements are satisfied.Represents the requirement on the pod conditions.int
hashCode()
onExitCodes
(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) Set onExitCodes in a chainable fashion.onPodConditions
(List<@Valid V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) Set onPodConditions in a chainable fashion.void
Set the action property valuevoid
setOnExitCodes
(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) Set the onExitCodes property valuevoid
setOnPodConditions
(List<@Valid V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) Set the onPodConditions property valuetoString()
-
Field Details
-
JSON_PROPERTY_ACTION
- See Also:
-
JSON_PROPERTY_ON_EXIT_CODES
- See Also:
-
JSON_PROPERTY_ON_POD_CONDITIONS
- See Also:
-
-
Constructor Details
-
V1PodFailurePolicyRule
public V1PodFailurePolicyRule(String action, List<@Valid V1PodFailurePolicyOnPodConditionsPattern> onPodConditions)
-
-
Method Details
-
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. - 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:
- the action property value
-
setAction
Set the action property value -
action
Set action in a chainable fashion.- Returns:
- The same instance of V1PodFailurePolicyRule for chaining.
-
getOnExitCodes
- Returns:
- the onExitCodes property value
-
setOnExitCodes
Set the onExitCodes property value -
onExitCodes
Set onExitCodes in a chainable fashion.- Returns:
- The same instance of V1PodFailurePolicyRule for chaining.
-
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:
- the onPodConditions property value
-
setOnPodConditions
public void setOnPodConditions(List<@Valid V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) Set the onPodConditions property value -
onPodConditions
public V1PodFailurePolicyRule onPodConditions(List<@Valid V1PodFailurePolicyOnPodConditionsPattern> onPodConditions) Set onPodConditions in a chainable fashion.- Returns:
- The same instance of V1PodFailurePolicyRule for chaining.
-
addonPodConditionsItem
public V1PodFailurePolicyRule addonPodConditionsItem(V1PodFailurePolicyOnPodConditionsPattern onPodConditionsItem) Add an item to the onPodConditions property in a chainable fashion.- Returns:
- The same instance of V1PodFailurePolicyRule for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-