com.pulumi.kubernetes.batch.v1.kotlin.outputs.PodFailurePolicyPatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.batch.v1.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
* PodFailurePolicy describes how failed pods influence the backoffLimit.
* @property rules A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
*/
public data class PodFailurePolicyPatch(
public val rules: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicyPatch): PodFailurePolicyPatch = PodFailurePolicyPatch(
rules = javaType.rules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.batch.v1.kotlin.outputs.PodFailurePolicyRulePatch.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy