Struct controller::cloudnativepg::clusters::ClusterSeccompProfile
source · pub struct ClusterSeccompProfile {
pub localhost_profile: Option<String>,
pub type: String,
}Expand description
The SeccompProfile applied to every Pod and Container. Defaults to: RuntimeDefault
Fields§
§localhost_profile: Option<String>localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet’s configured seccomp profile location. Must be set if type is “Localhost”. Must NOT be set for any other type.
type: Stringtype indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
Trait Implementations§
source§impl Clone for ClusterSeccompProfile
impl Clone for ClusterSeccompProfile
source§fn clone(&self) -> ClusterSeccompProfile
fn clone(&self) -> ClusterSeccompProfile
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 ClusterSeccompProfile
impl Debug for ClusterSeccompProfile
source§impl Default for ClusterSeccompProfile
impl Default for ClusterSeccompProfile
source§fn default() -> ClusterSeccompProfile
fn default() -> ClusterSeccompProfile
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ClusterSeccompProfile
impl<'de> Deserialize<'de> for ClusterSeccompProfile
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
source§impl JsonSchema for ClusterSeccompProfile
impl JsonSchema for ClusterSeccompProfile
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ClusterSeccompProfile
impl RefUnwindSafe for ClusterSeccompProfile
impl Send for ClusterSeccompProfile
impl Sync for ClusterSeccompProfile
impl Unpin for ClusterSeccompProfile
impl UnwindSafe for ClusterSeccompProfile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more