Class AllowedHostPath.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.extensions.v1beta1.AllowedHostPath.Builder
-
- Enclosing class:
- AllowedHostPath
public static class AllowedHostPath.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedHostPath
build()
AllowedHostPath.Builder
pathPrefix(java.lang.String pathPrefix)
pathPrefix is the path prefix that the host volume must match.AllowedHostPath.Builder
readOnly(java.lang.Boolean readOnly)
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.java.lang.String
toString()
-
-
-
Method Detail
-
pathPrefix
public AllowedHostPath.Builder pathPrefix(java.lang.String 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`
- Returns:
this
.
-
readOnly
public AllowedHostPath.Builder readOnly(java.lang.Boolean readOnly)
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.- Returns:
this
.
-
build
public AllowedHostPath build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-