Class AllowedHostPath

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<AllowedHostPathBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class AllowedHostPath
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<AllowedHostPathBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    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. Deprecated: use AllowedHostPath from policy API Group instead.
    See Also:
    Serialized Form
    • 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)