com.pulumi.kubernetes.policy.v1beta1.kotlin.outputs.RuntimeClassStrategyOptions.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.policy.v1beta1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.
* @property allowedRuntimeClassNames allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.
* @property defaultRuntimeClassName defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.
*/
public data class RuntimeClassStrategyOptions(
public val allowedRuntimeClassNames: List,
public val defaultRuntimeClassName: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.policy.v1beta1.outputs.RuntimeClassStrategyOptions): RuntimeClassStrategyOptions = RuntimeClassStrategyOptions(
allowedRuntimeClassNames = javaType.allowedRuntimeClassNames().map({ args0 -> args0 }),
defaultRuntimeClassName = javaType.defaultRuntimeClassName().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy