Class AllowedHostPath
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.policy.v1beta1.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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AllowedHostPath()No args constructor for use in serializationAllowedHostPath(String pathPrefix, Boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedHostPathBuilderedit()Map<String,Object>getAdditionalProperties()StringgetPathPrefix()pathPrefix is the path prefix that the host volume must match.BooleangetReadOnly()when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPathPrefix(String pathPrefix)pathPrefix is the path prefix that the host volume must match.voidsetReadOnly(Boolean readOnly)when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.AllowedHostPathBuildertoBuilder()
-
-
-
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.
-
edit
public AllowedHostPathBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AllowedHostPathBuilder>
-
toBuilder
public AllowedHostPathBuilder toBuilder()
-
-