Class AllowedHostPath

    • Constructor Detail

      • AllowedHostPath

        public AllowedHostPath()
        No args constructor for use in serialization
      • AllowedHostPath

        public AllowedHostPath​(String pathPrefix,
                               Boolean readOnly)
    • Method Detail

      • getPathPrefix

        public String getPathPrefix()
        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`

      • setPathPrefix

        public void setPathPrefix​(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`

      • getReadOnly

        public Boolean getReadOnly()
        when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
      • setReadOnly

        public void setReadOnly​(Boolean readOnly)
        when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)