pub struct Container {
pub image: String,
pub command: Vec<String>,
pub args: Vec<String>,
pub env: Vec<EnvVar>,
pub volume_mounts: Vec<VolumeMount>,
pub working_dir: String,
pub security_context: Option<SecurityContext>,
}Fields§
§image: String§command: Vec<String>§args: Vec<String>§env: Vec<EnvVar>§volume_mounts: Vec<VolumeMount>§working_dir: String§security_context: Option<SecurityContext>K8s securityContext on this container. Only privileged
is exposed today (#[container(privileged = true)]); other
fields can join when there’s a real use case. Skip-empty
keeps existing goldens byte-identical.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Container
impl<'de> Deserialize<'de> for Container
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
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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