Skip to main content

ComponentDefinitionLifecycleActionsDataLoadExec

Struct ComponentDefinitionLifecycleActionsDataLoadExec 

Source
pub struct ComponentDefinitionLifecycleActionsDataLoadExec {
    pub args: Option<Vec<String>>,
    pub command: Option<Vec<String>>,
    pub container: Option<String>,
    pub env: Option<Vec<ComponentDefinitionLifecycleActionsDataLoadExecEnv>>,
    pub image: Option<String>,
    pub matching_key: Option<String>,
    pub target_pod_selector: Option<ComponentDefinitionLifecycleActionsDataLoadExecTargetPodSelector>,
}
Expand description

Defines the command to run.

This field cannot be updated.

Fields§

§args: Option<Vec<String>>

Args represents the arguments that are passed to the command for execution.

§command: Option<Vec<String>>

Specifies the command to be executed inside the container. The working directory for this command is the container’s root directory(‘/’). Commands are executed directly without a shell environment, meaning shell-specific syntax (‘|’, etc.) is not supported. If the shell is required, it must be explicitly invoked in the command.

A successful execution is indicated by an exit status of 0; any non-zero status signifies a failure.

§container: Option<String>

Specifies the name of the container within the same pod whose resources will be shared with the action. This allows the action to utilize the specified container’s resources without executing within it.

The name must match one of the containers defined in componentDefinition.spec.runtime.

The resources that can be shared are included:

  • volume mounts

This field cannot be updated.

§env: Option<Vec<ComponentDefinitionLifecycleActionsDataLoadExecEnv>>

Represents a list of environment variables that will be injected into the container. These variables enable the container to adapt its behavior based on the environment it’s running in.

This field cannot be updated.

§image: Option<String>

Specifies the container image to be used for running the Action.

When specified, a dedicated container will be created using this image to execute the Action. All actions with same image will share the same container.

This field cannot be updated.

§matching_key: Option<String>

Used in conjunction with the targetPodSelector field to refine the selection of target pod(s) for Action execution. The impact of this field depends on the targetPodSelector value:

  • When targetPodSelector is set to Any or All, this field will be ignored.
  • When targetPodSelector is set to Role, only those replicas whose role matches the matchingKey will be selected for the Action.
  • When targetPodSelector is set to Ordinal, matchingKey must be a non-negative integer and only the replica whose Pod name ends with -<matchingKey> will be selected for the Action. The selector is considered ambiguous and the action fails if multiple Pods share the same ordinal.

This field cannot be updated.

§target_pod_selector: Option<ComponentDefinitionLifecycleActionsDataLoadExecTargetPodSelector>

Defines the criteria used to select the target Pod(s) for executing the Action. This is useful when there is no default target replica identified. It allows for precise control over which Pod(s) the Action should run in.

If not specified, the Action will be executed in the pod where the Action is triggered, such as the pod to be removed or added; or a random pod if the Action is triggered at the component level, such as post-provision or pre-terminate of the component.

This field cannot be updated.

Trait Implementations§

Source§

impl Clone for ComponentDefinitionLifecycleActionsDataLoadExec

Source§

fn clone(&self) -> ComponentDefinitionLifecycleActionsDataLoadExec

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComponentDefinitionLifecycleActionsDataLoadExec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ComponentDefinitionLifecycleActionsDataLoadExec

Source§

fn default() -> ComponentDefinitionLifecycleActionsDataLoadExec

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ComponentDefinitionLifecycleActionsDataLoadExec

Source§

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 ComponentDefinitionLifecycleActionsDataLoadExec

Source§

fn eq(&self, other: &ComponentDefinitionLifecycleActionsDataLoadExec) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ComponentDefinitionLifecycleActionsDataLoadExec

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ComponentDefinitionLifecycleActionsDataLoadExec

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.