successPolicy

@JvmName(name = "cdkogojjhacwavoh")
suspend fun successPolicy(value: Output<SuccessPolicyPatchArgs>)
@JvmName(name = "rqiadvjrnkyvxsvb")
suspend fun successPolicy(value: SuccessPolicyPatchArgs?)

Parameters

value

successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated. This field is beta-level. To use this field, you must enable the JobSuccessPolicy feature gate (enabled by default).


@JvmName(name = "rkmcyfiqakpdisod")
suspend fun successPolicy(argument: suspend SuccessPolicyPatchArgsBuilder.() -> Unit)

Parameters

argument

successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated. This field is beta-level. To use this field, you must enable the JobSuccessPolicy feature gate (enabled by default).