com.pulumi.kubernetes.node.v1alpha1.kotlin.outputs.RuntimeClassSpecPatch.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.node.v1alpha1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.
* @property overhead Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature.
* @property runtimeHandler RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable.
* @property scheduling Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
*/
public data class RuntimeClassSpecPatch(
public val overhead: OverheadPatch? = null,
public val runtimeHandler: String? = null,
public val scheduling: SchedulingPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.node.v1alpha1.outputs.RuntimeClassSpecPatch): RuntimeClassSpecPatch = RuntimeClassSpecPatch(
overhead = javaType.overhead().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.node.v1alpha1.kotlin.outputs.OverheadPatch.Companion.toKotlin(args0)
})
}).orElse(null),
runtimeHandler = javaType.runtimeHandler().map({ args0 -> args0 }).orElse(null),
scheduling = javaType.scheduling().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.node.v1alpha1.kotlin.outputs.SchedulingPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy