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

com.pulumi.gcp.container.kotlin.outputs.ClusterNodeConfigKubeletConfig.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.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property cpuCfsQuota If true, enables CPU CFS quota enforcement for
 * containers that specify CPU limits.
 * @property cpuCfsQuotaPeriod The CPU CFS quota period value. Specified
 * as a sequence of decimal numbers, each with optional fraction and a unit suffix,
 * such as `"300ms"`. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
 * "h". The value must be a positive duration.
 * > Note: At the time of writing (2020/08/18) the GKE API rejects the `none`
 * value and accepts an invalid `default` value instead. While this remains true,
 * not specifying the `kubelet_config` block should be the equivalent of specifying
 * `none`.
 * @property cpuManagerPolicy The CPU management policy on the node. See
 * [K8S CPU Management Policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/).
 * One of `"none"` or `"static"`. Defaults to `none` when `kubelet_config` is unset.
 * @property podPidsLimit Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304.
 */
public data class ClusterNodeConfigKubeletConfig(
    public val cpuCfsQuota: Boolean? = null,
    public val cpuCfsQuotaPeriod: String? = null,
    public val cpuManagerPolicy: String,
    public val podPidsLimit: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodeConfigKubeletConfig): ClusterNodeConfigKubeletConfig = ClusterNodeConfigKubeletConfig(
            cpuCfsQuota = javaType.cpuCfsQuota().map({ args0 -> args0 }).orElse(null),
            cpuCfsQuotaPeriod = javaType.cpuCfsQuotaPeriod().map({ args0 -> args0 }).orElse(null),
            cpuManagerPolicy = javaType.cpuManagerPolicy(),
            podPidsLimit = javaType.podPidsLimit().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy