SuccessPolicyPatchArgs

data class SuccessPolicyPatchArgs(val rules: Output<List<SuccessPolicyRulePatchArgs>>? = null) : ConvertibleToJava<SuccessPolicyPatchArgs>

SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.

Constructors

Link copied to clipboard
constructor(rules: Output<List<SuccessPolicyRulePatchArgs>>? = null)

Properties

Link copied to clipboard
val rules: Output<List<SuccessPolicyRulePatchArgs>>? = null

rules represents the list of alternative rules for the declaring the Jobs as successful before .status.succeeded >= .spec.completions. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.

Functions

Link copied to clipboard
open override fun toJava(): SuccessPolicyPatchArgs