Class IoK8sApiPolicyV1beta1AllowedHostPath


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]")
    public class IoK8sApiPolicyV1beta1AllowedHostPath
    extends Object
    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.
    • Constructor Detail

      • IoK8sApiPolicyV1beta1AllowedHostPath

        public IoK8sApiPolicyV1beta1AllowedHostPath()
    • Method Detail

      • getPathPrefix

        @Nullable
        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`
        Returns:
        pathPrefix
      • setPathPrefix

        public void setPathPrefix​(String pathPrefix)
      • getReadOnly

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

        public void setReadOnly​(Boolean readOnly)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object