Class AllowedHostPath.Builder

  • Enclosing class:
    AllowedHostPath

    public static class AllowedHostPath.Builder
    extends java.lang.Object
    • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object