Struct k8s_openapi::v1_8::api::extensions::v1beta1::AllowedHostPath
source · Expand description
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>
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
Trait Implementations§
source§impl Clone for AllowedHostPath
impl Clone for AllowedHostPath
source§fn clone(&self) -> AllowedHostPath
fn clone(&self) -> AllowedHostPath
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AllowedHostPath
impl Debug for AllowedHostPath
source§impl Default for AllowedHostPath
impl Default for AllowedHostPath
source§fn default() -> AllowedHostPath
fn default() -> AllowedHostPath
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AllowedHostPath
impl<'de> Deserialize<'de> for AllowedHostPath
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more