com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.PodSchedulingContextSpec.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* PodSchedulingContextSpec describes where resources for the Pod are needed.
* @property potentialNodes PotentialNodes lists nodes where the Pod might be able to run.
* The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
* @property selectedNode SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
*/
public data class PodSchedulingContextSpec(
public val potentialNodes: List? = null,
public val selectedNode: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha2.outputs.PodSchedulingContextSpec): PodSchedulingContextSpec = PodSchedulingContextSpec(
potentialNodes = javaType.potentialNodes().map({ args0 -> args0 }),
selectedNode = javaType.selectedNode().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy