pub struct ExecNewPodHook {
pub command: Vec<String>,
pub container_name: String,
pub env: Option<Vec<EnvVar>>,
pub volumes: Option<Vec<String>>,
}
Expand description
ExecNewPodHook is a hook implementation which runs a command in a new pod based on the specified container which is assumed to be part of the deployment template.
Fields§
§command: Vec<String>
Command is the action command and its arguments.
container_name: String
ContainerName is the name of a container in the deployment pod template whose container image will be used for the hook pod’s container.
env: Option<Vec<EnvVar>>
Env is a set of environment variables to supply to the hook pod’s container.
volumes: Option<Vec<String>>
Volumes is a list of named volumes from the pod template which should be copied to the hook pod. Volumes names not found in pod spec are ignored. An empty list means no volumes will be copied.
Trait Implementations§
Source§impl Clone for ExecNewPodHook
impl Clone for ExecNewPodHook
Source§fn clone(&self) -> ExecNewPodHook
fn clone(&self) -> ExecNewPodHook
Returns a duplicate 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 ExecNewPodHook
impl Debug for ExecNewPodHook
Source§impl Default for ExecNewPodHook
impl Default for ExecNewPodHook
Source§fn default() -> ExecNewPodHook
fn default() -> ExecNewPodHook
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecNewPodHook
impl<'de> Deserialize<'de> for ExecNewPodHook
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 PartialEq for ExecNewPodHook
impl PartialEq for ExecNewPodHook
Source§impl Serialize for ExecNewPodHook
impl Serialize for ExecNewPodHook
impl StructuralPartialEq for ExecNewPodHook
Auto Trait Implementations§
impl Freeze for ExecNewPodHook
impl RefUnwindSafe for ExecNewPodHook
impl Send for ExecNewPodHook
impl Sync for ExecNewPodHook
impl Unpin for ExecNewPodHook
impl UnwindSafe for ExecNewPodHook
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