Class PodFailurePolicyRule
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.batch.v1.PodFailurePolicyRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PodFailurePolicyRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodFailurePolicyRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<PodFailurePolicyRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PodFailurePolicyRule()No args constructor for use in serializationPodFailurePolicyRule(String action, PodFailurePolicyOnExitCodesRequirement onExitCodes, List<PodFailurePolicyOnPodConditionsPattern> onPodConditions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodFailurePolicyRuleBuilderedit()StringgetAction()Specifies the action taken on a pod failure when the requirements are satisfied.Map<String,Object>getAdditionalProperties()PodFailurePolicyOnExitCodesRequirementgetOnExitCodes()PodFailurePolicyRule describes how a pod failure is handled when the requirements are met.List<PodFailurePolicyOnPodConditionsPattern>getOnPodConditions()Represents the requirement on the pod conditions.voidsetAction(String action)Specifies the action taken on a pod failure when the requirements are satisfied.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetOnExitCodes(PodFailurePolicyOnExitCodesRequirement onExitCodes)PodFailurePolicyRule describes how a pod failure is handled when the requirements are met.voidsetOnPodConditions(List<PodFailurePolicyOnPodConditionsPattern> onPodConditions)Represents the requirement on the pod conditions.PodFailurePolicyRuleBuildertoBuilder()
-
-
-
Constructor Detail
-
PodFailurePolicyRule
public PodFailurePolicyRule()
No args constructor for use in serialization
-
PodFailurePolicyRule
public PodFailurePolicyRule(String action, PodFailurePolicyOnExitCodesRequirement onExitCodes, List<PodFailurePolicyOnPodConditionsPattern> onPodConditions)
-
-
Method Detail
-
getAction
public String 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.
- 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.
-
setAction
public void setAction(String 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.
-
getOnExitCodes
public PodFailurePolicyOnExitCodesRequirement getOnExitCodes()
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.
-
setOnExitCodes
public void setOnExitCodes(PodFailurePolicyOnExitCodesRequirement onExitCodes)
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.
-
getOnPodConditions
public List<PodFailurePolicyOnPodConditionsPattern> 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.
-
setOnPodConditions
public void setOnPodConditions(List<PodFailurePolicyOnPodConditionsPattern> 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.
-
edit
public PodFailurePolicyRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PodFailurePolicyRuleBuilder>
-
toBuilder
public PodFailurePolicyRuleBuilder toBuilder()
-
-