com.pulumi.kubernetes.extensions.v1beta1.kotlin.outputs.DaemonSetStatus.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.extensions.v1beta1.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List
/**
* DaemonSetStatus represents the current status of a daemon set.
* @property collisionCount Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
* @property conditions Represents the latest available observations of a DaemonSet's current state.
* @property currentNumberScheduled The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
* @property desiredNumberScheduled The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
* @property numberAvailable The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
* @property numberMisscheduled The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
* @property numberReady The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.
* @property numberUnavailable The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
* @property observedGeneration The most recent generation observed by the daemon set controller.
* @property updatedNumberScheduled The total number of nodes that are running updated daemon pod
*/
public data class DaemonSetStatus(
public val collisionCount: Int? = null,
public val conditions: List? = null,
public val currentNumberScheduled: Int,
public val desiredNumberScheduled: Int,
public val numberAvailable: Int? = null,
public val numberMisscheduled: Int,
public val numberReady: Int,
public val numberUnavailable: Int? = null,
public val observedGeneration: Int? = null,
public val updatedNumberScheduled: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.extensions.v1beta1.outputs.DaemonSetStatus): DaemonSetStatus = DaemonSetStatus(
collisionCount = javaType.collisionCount().map({ args0 -> args0 }).orElse(null),
conditions = javaType.conditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.extensions.v1beta1.kotlin.outputs.DaemonSetCondition.Companion.toKotlin(args0)
})
}),
currentNumberScheduled = javaType.currentNumberScheduled(),
desiredNumberScheduled = javaType.desiredNumberScheduled(),
numberAvailable = javaType.numberAvailable().map({ args0 -> args0 }).orElse(null),
numberMisscheduled = javaType.numberMisscheduled(),
numberReady = javaType.numberReady(),
numberUnavailable = javaType.numberUnavailable().map({ args0 -> args0 }).orElse(null),
observedGeneration = javaType.observedGeneration().map({ args0 -> args0 }).orElse(null),
updatedNumberScheduled = javaType.updatedNumberScheduled().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy