pub struct PodSpec {
pub containers: Vec<ContainerSpec>,
pub init_containers: Vec<ContainerSpec>,
pub volumes: Vec<Volume>,
pub service_account_name: Option<String>,
pub host_network: Option<bool>,
pub host_pid: Option<bool>,
pub host_ipc: Option<bool>,
pub security_context: Option<PodSecurityContext>,
pub affinity: Option<Affinity>,
pub dns_config: Option<DnsConfig>,
pub restart_policy: Option<String>,
pub priority_class_name: Option<String>,
}Expand description
Pod spec (simplified).
Fields§
§containers: Vec<ContainerSpec>§init_containers: Vec<ContainerSpec>§volumes: Vec<Volume>§service_account_name: Option<String>§host_network: Option<bool>§host_pid: Option<bool>§host_ipc: Option<bool>§security_context: Option<PodSecurityContext>§affinity: Option<Affinity>§dns_config: Option<DnsConfig>§restart_policy: Option<String>§priority_class_name: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PodSpec
impl RefUnwindSafe for PodSpec
impl Send for PodSpec
impl Sync for PodSpec
impl Unpin for PodSpec
impl UnwindSafe for PodSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.