IoArgoprojWorkflowV1alpha1TemplateBuilder

Struct IoArgoprojWorkflowV1alpha1TemplateBuilder 

Source
pub struct IoArgoprojWorkflowV1alpha1TemplateBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl IoArgoprojWorkflowV1alpha1TemplateBuilder

Source

pub fn active_deadline_seconds( &mut self, value: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>, ) -> &mut Self

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.

Source

pub fn affinity(&mut self, value: Option<IoK8sApiCoreV1Affinity>) -> &mut Self

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

Source

pub fn archive_location( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ArtifactLocation>, ) -> &mut Self

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.

Source

pub fn automount_service_account_token( &mut self, value: Option<bool>, ) -> &mut Self

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

Source

pub fn container(&mut self, value: Option<IoK8sApiCoreV1Container>) -> &mut Self

Container is the main container image to run in the pod

Source

pub fn container_set( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ContainerSetTemplate>, ) -> &mut Self

ContainerSet groups multiple containers within a single pod.

Source

pub fn daemon(&mut self, value: Option<bool>) -> &mut Self

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

Source

pub fn dag( &mut self, value: Option<IoArgoprojWorkflowV1alpha1DagTemplate>, ) -> &mut Self

DAG template subtype which runs a DAG

Source

pub fn data( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Data>, ) -> &mut Self

Data is a data template

Source

pub fn executor( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>, ) -> &mut Self

Executor holds configurations of the executor container.

Source

pub fn fail_fast(&mut self, value: Option<bool>) -> &mut Self

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.

Source

pub fn host_aliases(&mut self, value: Vec<IoK8sApiCoreV1HostAlias>) -> &mut Self

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

Source

pub fn http( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Http>, ) -> &mut Self

HTTP makes a HTTP request

Source

pub fn init_containers( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1UserContainer>, ) -> &mut Self

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

Source

pub fn inputs( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Inputs>, ) -> &mut Self

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

Source

pub fn memoize( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Memoize>, ) -> &mut Self

Memoize allows templates to use outputs generated from already executed templates

Source

pub fn metadata( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Metadata>, ) -> &mut Self

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

Source

pub fn metrics( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Metrics>, ) -> &mut Self

Metrics are a list of metrics emitted from this template

Source

pub fn name(&mut self, value: Option<String>) -> &mut Self

Name is the name of the template

Source

pub fn node_selector(&mut self, value: HashMap<String, String>) -> &mut Self

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.

Source

pub fn outputs( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Outputs>, ) -> &mut Self

Outputs describe the parameters and artifacts that this template produces

Source

pub fn parallelism(&mut self, value: Option<i64>) -> &mut Self

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.

Source

pub fn plugin( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Plugin>, ) -> &mut Self

Plugin is a plugin template

Source

pub fn pod_spec_patch(&mut self, value: Option<String>) -> &mut Self

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

Source

pub fn priority(&mut self, value: Option<i64>) -> &mut Self

Priority to apply to workflow pods.

Source

pub fn priority_class_name(&mut self, value: Option<String>) -> &mut Self

PriorityClassName to apply to workflow pods.

Source

pub fn resource( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ResourceTemplate>, ) -> &mut Self

Resource template subtype which can run k8s resources

Source

pub fn retry_strategy( &mut self, value: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>, ) -> &mut Self

RetryStrategy describes how to retry a template when it fails

Source

pub fn scheduler_name(&mut self, value: Option<String>) -> &mut Self

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.

Source

pub fn script( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ScriptTemplate>, ) -> &mut Self

Script runs a portion of code against an interpreter

Source

pub fn security_context( &mut self, value: Option<IoK8sApiCoreV1PodSecurityContext>, ) -> &mut Self

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

Source

pub fn service_account_name(&mut self, value: Option<String>) -> &mut Self

ServiceAccountName to apply to workflow pods

Source

pub fn sidecars( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1UserContainer>, ) -> &mut Self

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

Source

pub fn steps( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1ParallelSteps>, ) -> &mut Self

Steps define a series of sequential/parallel workflow steps

Source

pub fn suspend( &mut self, value: Option<IoArgoprojWorkflowV1alpha1SuspendTemplate>, ) -> &mut Self

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

Source

pub fn synchronization( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Synchronization>, ) -> &mut Self

Synchronization holds synchronization lock configuration for this template

Source

pub fn timeout(&mut self, value: Option<String>) -> &mut Self

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.

Source

pub fn tolerations(&mut self, value: Vec<IoK8sApiCoreV1Toleration>) -> &mut Self

Tolerations to apply to workflow pods.

Source

pub fn volumes(&mut self, value: Vec<IoK8sApiCoreV1Volume>) -> &mut Self

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

Source

pub fn build( &self, ) -> Result<IoArgoprojWorkflowV1alpha1Template, IoArgoprojWorkflowV1alpha1TemplateBuilderError>

Builds a new IoArgoprojWorkflowV1alpha1Template.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Clone for IoArgoprojWorkflowV1alpha1TemplateBuilder

Source§

fn clone(&self) -> IoArgoprojWorkflowV1alpha1TemplateBuilder

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 Default for IoArgoprojWorkflowV1alpha1TemplateBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. 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.