All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.batch.v1.kotlin.outputs.PodFailurePolicy.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@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 PodFailurePolicy(
    public val rules: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicy): PodFailurePolicy = PodFailurePolicy(
            rules = javaType.rules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.batch.v1.kotlin.outputs.PodFailurePolicyRule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy