
com.pulumi.azure.containerservice.kotlin.outputs.KubernetesClusterNodePoolUpgradeSettings.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerservice.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property drainTimeoutInMinutes The amount of time in minutes to wait on eviction of pods and graceful termination per node. This eviction wait time honors waiting on pod disruption budgets. If this time is exceeded, the upgrade fails. Unsetting this after configuring it will force a new resource to be created.
* @property maxSurge The maximum number or percentage of nodes which will be added to the Node Pool size during an upgrade.
* @property nodeSoakDurationInMinutes The amount of time in minutes to wait after draining a node and before reimaging and moving on to next node. Defaults to `0`.
*/
public data class KubernetesClusterNodePoolUpgradeSettings(
public val drainTimeoutInMinutes: Int? = null,
public val maxSurge: String,
public val nodeSoakDurationInMinutes: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerservice.outputs.KubernetesClusterNodePoolUpgradeSettings): KubernetesClusterNodePoolUpgradeSettings = KubernetesClusterNodePoolUpgradeSettings(
drainTimeoutInMinutes = javaType.drainTimeoutInMinutes().map({ args0 -> args0 }).orElse(null),
maxSurge = javaType.maxSurge(),
nodeSoakDurationInMinutes = javaType.nodeSoakDurationInMinutes().map({ args0 ->
args0
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy