IoArgoprojWorkflowV1alpha1Template

Struct IoArgoprojWorkflowV1alpha1Template 

Source
pub struct IoArgoprojWorkflowV1alpha1Template {
Show 39 fields pub active_deadline_seconds: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>, pub affinity: Option<IoK8sApiCoreV1Affinity>, pub archive_location: Option<IoArgoprojWorkflowV1alpha1ArtifactLocation>, pub automount_service_account_token: Option<bool>, pub container: Option<IoK8sApiCoreV1Container>, pub container_set: Option<IoArgoprojWorkflowV1alpha1ContainerSetTemplate>, pub daemon: Option<bool>, pub dag: Option<IoArgoprojWorkflowV1alpha1DagTemplate>, pub data: Option<IoArgoprojWorkflowV1alpha1Data>, pub executor: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>, pub fail_fast: Option<bool>, pub host_aliases: Vec<IoK8sApiCoreV1HostAlias>, pub http: Option<IoArgoprojWorkflowV1alpha1Http>, pub init_containers: Vec<IoArgoprojWorkflowV1alpha1UserContainer>, pub inputs: Option<IoArgoprojWorkflowV1alpha1Inputs>, pub memoize: Option<IoArgoprojWorkflowV1alpha1Memoize>, pub metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>, pub metrics: Option<IoArgoprojWorkflowV1alpha1Metrics>, pub name: Option<String>, pub node_selector: HashMap<String, String>, pub outputs: Option<IoArgoprojWorkflowV1alpha1Outputs>, pub parallelism: Option<i64>, pub plugin: Option<IoArgoprojWorkflowV1alpha1Plugin>, pub pod_spec_patch: Option<String>, pub priority: Option<i64>, pub priority_class_name: Option<String>, pub resource: Option<IoArgoprojWorkflowV1alpha1ResourceTemplate>, pub retry_strategy: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>, pub scheduler_name: Option<String>, pub script: Option<IoArgoprojWorkflowV1alpha1ScriptTemplate>, pub security_context: Option<IoK8sApiCoreV1PodSecurityContext>, pub service_account_name: Option<String>, pub sidecars: Vec<IoArgoprojWorkflowV1alpha1UserContainer>, pub steps: Vec<IoArgoprojWorkflowV1alpha1ParallelSteps>, pub suspend: Option<IoArgoprojWorkflowV1alpha1SuspendTemplate>, pub synchronization: Option<IoArgoprojWorkflowV1alpha1Synchronization>, pub timeout: Option<String>, pub tolerations: Vec<IoK8sApiCoreV1Toleration>, pub volumes: Vec<IoK8sApiCoreV1Volume>,
}
Expand description

Template is a reusable and composable unit of execution in a workflow

Fields§

§active_deadline_seconds: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>

Optional duration in seconds relative to the StartTime that the pod may be active on a node before the system actively tries to terminate the pod; value must be positive integer This field is only applicable to container and script templates.

§affinity: Option<IoK8sApiCoreV1Affinity>

Affinity sets the pod’s scheduling constraints Overrides the affinity set at the workflow level (if any)

§archive_location: Option<IoArgoprojWorkflowV1alpha1ArtifactLocation>

Location in which all files related to the step will be stored (logs, artifacts, etc…). Can be overridden by individual items in Outputs. If omitted, will use the default artifact repository location configured in the controller, appended with the / in the key.

§automount_service_account_token: Option<bool>

AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. ServiceAccountName of ExecutorConfig must be specified if this value is false.

§container: Option<IoK8sApiCoreV1Container>

Container is the main container image to run in the pod

§container_set: Option<IoArgoprojWorkflowV1alpha1ContainerSetTemplate>

ContainerSet groups multiple containers within a single pod.

§daemon: Option<bool>

Daemon will allow a workflow to proceed to the next step so long as the container reaches readiness

§dag: Option<IoArgoprojWorkflowV1alpha1DagTemplate>

DAG template subtype which runs a DAG

§data: Option<IoArgoprojWorkflowV1alpha1Data>

Data is a data template

§executor: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>

Executor holds configurations of the executor container.

§fail_fast: Option<bool>

FailFast, if specified, will fail this template if any of its child pods has failed. This is useful for when this template is expanded with withItems, etc.

§host_aliases: Vec<IoK8sApiCoreV1HostAlias>

HostAliases is an optional list of hosts and IPs that will be injected into the pod spec

§http: Option<IoArgoprojWorkflowV1alpha1Http>

HTTP makes a HTTP request

§init_containers: Vec<IoArgoprojWorkflowV1alpha1UserContainer>

InitContainers is a list of containers which run before the main container.

§inputs: Option<IoArgoprojWorkflowV1alpha1Inputs>

Inputs describe what inputs parameters and artifacts are supplied to this template

§memoize: Option<IoArgoprojWorkflowV1alpha1Memoize>

Memoize allows templates to use outputs generated from already executed templates

§metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>

Metdata sets the pods’s metadata, i.e. annotations and labels

§metrics: Option<IoArgoprojWorkflowV1alpha1Metrics>

Metrics are a list of metrics emitted from this template

§name: Option<String>

Name is the name of the template

§node_selector: HashMap<String, String>

NodeSelector is a selector to schedule this step of the workflow to be run on the selected node(s). Overrides the selector set at the workflow level.

§outputs: Option<IoArgoprojWorkflowV1alpha1Outputs>

Outputs describe the parameters and artifacts that this template produces

§parallelism: Option<i64>

Parallelism limits the max total parallel pods that can execute at the same time within the boundaries of this template invocation. If additional steps/dag templates are invoked, the pods created by those templates will not be counted towards this total.

§plugin: Option<IoArgoprojWorkflowV1alpha1Plugin>

Plugin is a plugin template

§pod_spec_patch: Option<String>

PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits).

§priority: Option<i64>

Priority to apply to workflow pods.

§priority_class_name: Option<String>

PriorityClassName to apply to workflow pods.

§resource: Option<IoArgoprojWorkflowV1alpha1ResourceTemplate>

Resource template subtype which can run k8s resources

§retry_strategy: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>

RetryStrategy describes how to retry a template when it fails

§scheduler_name: Option<String>

If specified, the pod will be dispatched by specified scheduler. Or it will be dispatched by workflow scope scheduler if specified. If neither specified, the pod will be dispatched by default scheduler.

§script: Option<IoArgoprojWorkflowV1alpha1ScriptTemplate>

Script runs a portion of code against an interpreter

§security_context: Option<IoK8sApiCoreV1PodSecurityContext>

SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.

§service_account_name: Option<String>

ServiceAccountName to apply to workflow pods

§sidecars: Vec<IoArgoprojWorkflowV1alpha1UserContainer>

Sidecars is a list of containers which run alongside the main container Sidecars are automatically killed when the main container completes

§steps: Vec<IoArgoprojWorkflowV1alpha1ParallelSteps>

Steps define a series of sequential/parallel workflow steps

§suspend: Option<IoArgoprojWorkflowV1alpha1SuspendTemplate>

Suspend template subtype which can suspend a workflow when reaching the step

§synchronization: Option<IoArgoprojWorkflowV1alpha1Synchronization>

Synchronization holds synchronization lock configuration for this template

§timeout: Option<String>

Timeout allows to set the total node execution timeout duration counting from the node’s start time. This duration also includes time in which the node spends in Pending state. This duration may not be applied to Step or DAG templates.

§tolerations: Vec<IoK8sApiCoreV1Toleration>

Tolerations to apply to workflow pods.

§volumes: Vec<IoK8sApiCoreV1Volume>

Volumes is a list of volumes that can be mounted by containers in a template.

Trait Implementations§

Source§

impl Clone for IoArgoprojWorkflowV1alpha1Template

Source§

fn clone(&self) -> IoArgoprojWorkflowV1alpha1Template

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IoArgoprojWorkflowV1alpha1Template

Source§

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

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

impl Default for IoArgoprojWorkflowV1alpha1Template

Source§

fn default() -> IoArgoprojWorkflowV1alpha1Template

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

impl<'de> Deserialize<'de> for IoArgoprojWorkflowV1alpha1Template

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 From<&IoArgoprojWorkflowV1alpha1Template> for IoArgoprojWorkflowV1alpha1Template

Source§

fn from(value: &IoArgoprojWorkflowV1alpha1Template) -> Self

Converts to this type from the input type.
Source§

impl Serialize for IoArgoprojWorkflowV1alpha1Template

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

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

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