[][src]Struct openshift_openapi::api::apps::v1::ExecNewPodHook

pub struct ExecNewPodHook {
    pub command: Vec<String>,
    pub container_name: String,
    pub env: Option<Vec<EnvVar>>,
    pub volumes: Option<Vec<String>>,
}

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

impl Clone for ExecNewPodHook[src]

impl Debug for ExecNewPodHook[src]

impl Default for ExecNewPodHook[src]

impl<'de> Deserialize<'de> for ExecNewPodHook[src]

impl PartialEq<ExecNewPodHook> for ExecNewPodHook[src]

impl Serialize for ExecNewPodHook[src]

impl StructuralPartialEq for ExecNewPodHook[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.