Package org.cdk8s.plus25.k8s
Interface PodFailurePolicyRule
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PodFailurePolicyRule.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.770Z") @Stability(Stable) public interface PodFailurePolicyRule extends software.amazon.jsii.JsiiSerializable
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPodFailurePolicyRule.BuilderA builder forPodFailurePolicyRulestatic classPodFailurePolicyRule.Jsii$ProxyAn implementation forPodFailurePolicyRule
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static PodFailurePolicyRule.Builderbuilder()StringgetAction()Specifies the action taken on a pod failure when the requirements are satisfied.default PodFailurePolicyOnExitCodesRequirementgetOnExitCodes()Represents the requirement on the container exit codes.List<PodFailurePolicyOnPodConditionsPattern>getOnPodConditions()Represents the requirement on the pod conditions.
-
-
-
Method Detail
-
getAction
@Stability(Stable) @NotNull 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.
- 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.
-
getOnPodConditions
@Stability(Stable) @NotNull 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.
-
getOnExitCodes
@Stability(Stable) @Nullable default PodFailurePolicyOnExitCodesRequirement getOnExitCodes()
Represents the requirement on the container exit codes.
-
builder
@Stability(Stable) static PodFailurePolicyRule.Builder builder()
- Returns:
- a
PodFailurePolicyRule.BuilderofPodFailurePolicyRule
-
-