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

com.pulumi.gcp.container.kotlin.outputs.ClusterNodePoolNodeConfigLinuxNodeConfig.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property cgroupMode Possible cgroup modes that can be used.
 * Accepted values are:
 * * `CGROUP_MODE_UNSPECIFIED`: CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. The default for the GKE node OS image will be used.
 * * `CGROUP_MODE_V1`: CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on the node image.
 * * `CGROUP_MODE_V2`: CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on the node image.
 * @property sysctls The Linux kernel parameters to be applied to the nodes
 * and all pods running on the nodes. Specified as a map from the key, such as
 * `net.core.wmem_max`, to a string value. Currently supported attributes can be found [here](https://cloud.google.com/sdk/gcloud/reference/beta/container/node-pools/create#--system-config-from-file).
 * Note that validations happen all server side. All attributes are optional.
 */
public data class ClusterNodePoolNodeConfigLinuxNodeConfig(
    public val cgroupMode: String? = null,
    public val sysctls: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodePoolNodeConfigLinuxNodeConfig): ClusterNodePoolNodeConfigLinuxNodeConfig = ClusterNodePoolNodeConfigLinuxNodeConfig(
            cgroupMode = javaType.cgroupMode().map({ args0 -> args0 }).orElse(null),
            sysctls = javaType.sysctls().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy