Struct k8s_openapi::api::policy::v1beta1::AllowedHostPath [−][src]
Expand description
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.
Fields
path_prefix: Option<String>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
read_only: Option<bool>when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for AllowedHostPathimpl Send for AllowedHostPathimpl Sync for AllowedHostPathimpl Unpin for AllowedHostPathimpl UnwindSafe for AllowedHostPathBlanket Implementations
Mutably borrows from an owned value. Read more