com.pulumi.kubernetes.policy.v1beta1.kotlin.outputs.AllowedHostPath.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.policy.v1beta1.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.
* @property pathPrefix pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
* @property readOnly when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
*/
public data class AllowedHostPath(
public val pathPrefix: String? = null,
public val readOnly: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.policy.v1beta1.outputs.AllowedHostPath): AllowedHostPath = AllowedHostPath(
pathPrefix = javaType.pathPrefix().map({ args0 -> args0 }).orElse(null),
readOnly = javaType.readOnly().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy