pub struct IoArgoprojWorkflowV1alpha1TemplateBuilder { /* private fields */ }Expand description
Builder for IoArgoprojWorkflowV1alpha1Template.
Implementations§
Source§impl IoArgoprojWorkflowV1alpha1TemplateBuilder
impl IoArgoprojWorkflowV1alpha1TemplateBuilder
Sourcepub fn active_deadline_seconds(
&mut self,
value: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
) -> &mut Self
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.
Sourcepub fn affinity(&mut self, value: Option<IoK8sApiCoreV1Affinity>) -> &mut Self
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)
Sourcepub fn archive_location(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ArtifactLocation>,
) -> &mut Self
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
Sourcepub fn automount_service_account_token(
&mut self,
value: Option<bool>,
) -> &mut Self
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.
Sourcepub fn container(&mut self, value: Option<IoK8sApiCoreV1Container>) -> &mut Self
pub fn container(&mut self, value: Option<IoK8sApiCoreV1Container>) -> &mut Self
Container is the main container image to run in the pod
Sourcepub fn container_set(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ContainerSetTemplate>,
) -> &mut Self
pub fn container_set( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ContainerSetTemplate>, ) -> &mut Self
ContainerSet groups multiple containers within a single pod.
Sourcepub fn daemon(&mut self, value: Option<bool>) -> &mut Self
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
Sourcepub fn dag(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1DagTemplate>,
) -> &mut Self
pub fn dag( &mut self, value: Option<IoArgoprojWorkflowV1alpha1DagTemplate>, ) -> &mut Self
DAG template subtype which runs a DAG
Sourcepub fn data(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Data>,
) -> &mut Self
pub fn data( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Data>, ) -> &mut Self
Data is a data template
Sourcepub fn executor(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>,
) -> &mut Self
pub fn executor( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>, ) -> &mut Self
Executor holds configurations of the executor container.
Sourcepub fn fail_fast(&mut self, value: Option<bool>) -> &mut Self
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.
Sourcepub fn host_aliases(&mut self, value: Vec<IoK8sApiCoreV1HostAlias>) -> &mut Self
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
Sourcepub fn http(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Http>,
) -> &mut Self
pub fn http( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Http>, ) -> &mut Self
HTTP makes a HTTP request
Sourcepub fn init_containers(
&mut self,
value: Vec<IoArgoprojWorkflowV1alpha1UserContainer>,
) -> &mut Self
pub fn init_containers( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1UserContainer>, ) -> &mut Self
InitContainers is a list of containers which run before the main container.
Sourcepub fn inputs(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Inputs>,
) -> &mut Self
pub fn inputs( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Inputs>, ) -> &mut Self
Inputs describe what inputs parameters and artifacts are supplied to this template
Sourcepub fn memoize(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Memoize>,
) -> &mut Self
pub fn memoize( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Memoize>, ) -> &mut Self
Memoize allows templates to use outputs generated from already executed templates
Sourcepub fn metadata(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Metadata>,
) -> &mut Self
pub fn metadata( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Metadata>, ) -> &mut Self
Metdata sets the pods’s metadata, i.e. annotations and labels
Sourcepub fn metrics(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Metrics>,
) -> &mut Self
pub fn metrics( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Metrics>, ) -> &mut Self
Metrics are a list of metrics emitted from this template
Sourcepub fn node_selector(&mut self, value: HashMap<String, String>) -> &mut Self
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.
Sourcepub fn outputs(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Outputs>,
) -> &mut Self
pub fn outputs( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Outputs>, ) -> &mut Self
Outputs describe the parameters and artifacts that this template produces
Sourcepub fn parallelism(&mut self, value: Option<i64>) -> &mut Self
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.
Sourcepub fn plugin(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Plugin>,
) -> &mut Self
pub fn plugin( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Plugin>, ) -> &mut Self
Plugin is a plugin template
Sourcepub fn pod_spec_patch(&mut self, value: Option<String>) -> &mut Self
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).
Sourcepub fn priority(&mut self, value: Option<i64>) -> &mut Self
pub fn priority(&mut self, value: Option<i64>) -> &mut Self
Priority to apply to workflow pods.
Sourcepub fn priority_class_name(&mut self, value: Option<String>) -> &mut Self
pub fn priority_class_name(&mut self, value: Option<String>) -> &mut Self
PriorityClassName to apply to workflow pods.
Sourcepub fn resource(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ResourceTemplate>,
) -> &mut Self
pub fn resource( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ResourceTemplate>, ) -> &mut Self
Resource template subtype which can run k8s resources
Sourcepub fn retry_strategy(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>,
) -> &mut Self
pub fn retry_strategy( &mut self, value: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>, ) -> &mut Self
RetryStrategy describes how to retry a template when it fails
Sourcepub fn scheduler_name(&mut self, value: Option<String>) -> &mut Self
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.
Sourcepub fn script(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ScriptTemplate>,
) -> &mut Self
pub fn script( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ScriptTemplate>, ) -> &mut Self
Script runs a portion of code against an interpreter
Sourcepub fn security_context(
&mut self,
value: Option<IoK8sApiCoreV1PodSecurityContext>,
) -> &mut Self
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.
Sourcepub fn service_account_name(&mut self, value: Option<String>) -> &mut Self
pub fn service_account_name(&mut self, value: Option<String>) -> &mut Self
ServiceAccountName to apply to workflow pods
Sourcepub fn sidecars(
&mut self,
value: Vec<IoArgoprojWorkflowV1alpha1UserContainer>,
) -> &mut Self
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
Sourcepub fn steps(
&mut self,
value: Vec<IoArgoprojWorkflowV1alpha1ParallelSteps>,
) -> &mut Self
pub fn steps( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1ParallelSteps>, ) -> &mut Self
Steps define a series of sequential/parallel workflow steps
Sourcepub fn suspend(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1SuspendTemplate>,
) -> &mut Self
pub fn suspend( &mut self, value: Option<IoArgoprojWorkflowV1alpha1SuspendTemplate>, ) -> &mut Self
Suspend template subtype which can suspend a workflow when reaching the step
Sourcepub fn synchronization(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Synchronization>,
) -> &mut Self
pub fn synchronization( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Synchronization>, ) -> &mut Self
Synchronization holds synchronization lock configuration for this template
Sourcepub fn timeout(&mut self, value: Option<String>) -> &mut Self
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.
Sourcepub fn tolerations(&mut self, value: Vec<IoK8sApiCoreV1Toleration>) -> &mut Self
pub fn tolerations(&mut self, value: Vec<IoK8sApiCoreV1Toleration>) -> &mut Self
Tolerations to apply to workflow pods.
Sourcepub fn volumes(&mut self, value: Vec<IoK8sApiCoreV1Volume>) -> &mut Self
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.
Sourcepub fn build(
&self,
) -> Result<IoArgoprojWorkflowV1alpha1Template, IoArgoprojWorkflowV1alpha1TemplateBuilderError>
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
impl Clone for IoArgoprojWorkflowV1alpha1TemplateBuilder
Source§fn clone(&self) -> IoArgoprojWorkflowV1alpha1TemplateBuilder
fn clone(&self) -> IoArgoprojWorkflowV1alpha1TemplateBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more