case class AllowedHostPath(pathPrefix: Optional[String] = Optional.Absent, readOnly: Optional[Boolean] = Optional.Absent) extends Product with Serializable
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.
- 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
- readOnly
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
- Alphabetic
- By Inheritance
- AllowedHostPath
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
AllowedHostPath(pathPrefix: Optional[String] = Optional.Absent, readOnly: Optional[Boolean] = Optional.Absent)
- 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
- readOnly
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getPathPrefix: IO[K8sFailure, String]
pathPrefix is the path prefix that the host volume must match.
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
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getReadOnly: IO[K8sFailure, Boolean]
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val pathPrefix: Optional[String]
- val readOnly: Optional[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated