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

com.pulumi.kubernetes.apps.v1.kotlin.outputs.DaemonSetStatusPatch.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.apps.v1.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 numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
 * @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 DaemonSetStatusPatch(
    public val collisionCount: Int? = null,
    public val conditions: List? = null,
    public val currentNumberScheduled: Int? = null,
    public val desiredNumberScheduled: Int? = null,
    public val numberAvailable: Int? = null,
    public val numberMisscheduled: Int? = null,
    public val numberReady: Int? = null,
    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.apps.v1.outputs.DaemonSetStatusPatch): DaemonSetStatusPatch = DaemonSetStatusPatch(
            collisionCount = javaType.collisionCount().map({ args0 -> args0 }).orElse(null),
            conditions = javaType.conditions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.apps.v1.kotlin.outputs.DaemonSetConditionPatch.Companion.toKotlin(args0)
                })
            }),
            currentNumberScheduled = javaType.currentNumberScheduled().map({ args0 -> args0 }).orElse(null),
            desiredNumberScheduled = javaType.desiredNumberScheduled().map({ args0 -> args0 }).orElse(null),
            numberAvailable = javaType.numberAvailable().map({ args0 -> args0 }).orElse(null),
            numberMisscheduled = javaType.numberMisscheduled().map({ args0 -> args0 }).orElse(null),
            numberReady = javaType.numberReady().map({ args0 -> args0 }).orElse(null),
            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