Class PodFailurePolicyRulePatch
- java.lang.Object
-
- com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicyRulePatch
-
public final class PodFailurePolicyRulePatch extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PodFailurePolicyRulePatch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
action()
static PodFailurePolicyRulePatch.Builder
builder()
static PodFailurePolicyRulePatch.Builder
builder(PodFailurePolicyRulePatch defaults)
java.util.Optional<PodFailurePolicyOnExitCodesRequirementPatch>
onExitCodes()
java.util.List<PodFailurePolicyOnPodConditionsPatternPatch>
onPodConditions()
-
-
-
Method Detail
-
action
public java.util.Optional<java.lang.String> action()
- Returns:
- 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.
-
onExitCodes
public java.util.Optional<PodFailurePolicyOnExitCodesRequirementPatch> onExitCodes()
- Returns:
- Represents the requirement on the container exit codes.
-
onPodConditions
public java.util.List<PodFailurePolicyOnPodConditionsPatternPatch> onPodConditions()
- Returns:
- 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.
-
builder
public static PodFailurePolicyRulePatch.Builder builder()
-
builder
public static PodFailurePolicyRulePatch.Builder builder(PodFailurePolicyRulePatch defaults)
-
-