IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder

Struct IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder 

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

Implementations§

Source§

impl IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder

Source

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

Optional duration in seconds relative to the workflow start time which the workflow is allowed to run before the controller terminates the io.argoproj.workflow.v1alpha1. A value of zero is used to terminate a Running workflow

Source

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

Affinity sets the scheduling constraints for all pods in the io.argoproj.workflow.v1alpha1. Can be overridden by an affinity specified in the template

Source

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

ArchiveLogs indicates if the container logs should be archived

Source

pub fn arguments( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Arguments>, ) -> &mut Self

Arguments contain the parameters and artifacts sent to the workflow entrypoint Parameters are referencable globally using the ‘workflow’ variable prefix. e.g. {{io.argoproj.workflow.v1alpha1.parameters.myparam}}

Source

pub fn artifact_gc( &mut self, value: Option<IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc>, ) -> &mut Self

ArtifactGC describes the strategy to use when deleting artifacts from completed or deleted workflows (applies to all output Artifacts unless Artifact.ArtifactGC is specified, which overrides this)

Source

pub fn artifact_repository_ref( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef>, ) -> &mut Self

ArtifactRepositoryRef specifies the configMap name and key containing the artifact repository config.

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 dns_config( &mut self, value: Option<IoK8sApiCoreV1PodDnsConfig>, ) -> &mut Self

PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.

Source

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

Set DNS policy for the pod. Defaults to “ClusterFirst”. Valid values are ‘ClusterFirstWithHostNet’, ‘ClusterFirst’, ‘Default’ or ‘None’. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to ‘ClusterFirstWithHostNet’.

Source

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

Entrypoint is a template reference to the starting point of the io.argoproj.workflow.v1alpha1.

Source

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

Executor holds configurations of executor containers of the io.argoproj.workflow.v1alpha1.

Source

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

Hooks holds the lifecycle hook which is invoked at lifecycle of step, irrespective of the success, failure, or error status of the primary step

Source

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

Source

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

Host networking requested for this workflow pod. Default to false.

Source

pub fn image_pull_secrets( &mut self, value: Vec<IoK8sApiCoreV1LocalObjectReference>, ) -> &mut Self

ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod

Source

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

Metrics are a list of metrics emitted from this Workflow

Source

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

NodeSelector is a selector which will result in all pods of the workflow to be scheduled on the selected node(s). This is able to be overridden by a nodeSelector specified in the template.

Source

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

OnExit is a template reference which is invoked at the end of the workflow, irrespective of the success, failure, or error of the primary io.argoproj.workflow.v1alpha1.

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 in a workflow

Source

pub fn pod_disruption_budget( &mut self, value: Option<IoK8sApiPolicyV1PodDisruptionBudgetSpec>, ) -> &mut Self

PodDisruptionBudget holds the number of concurrent disruptions that you allow for Workflow’s Pods. Controller will automatically add the selector with workflow name, if selector is empty. Optional: Defaults to empty.

Source

pub fn pod_gc( &mut self, value: Option<IoArgoprojWorkflowV1alpha1PodGc>, ) -> &mut Self

PodGC describes the strategy to use when deleting completed pods

Source

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

PodMetadata defines additional metadata that should be applied to workflow pods

Source

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

Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.

Source

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

PriorityClassName to apply to workflow pods.

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 is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first.

Source

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

RetryStrategy for all templates in the io.argoproj.workflow.v1alpha1.

Source

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

Set scheduler name for all pods. Will be overridden if container/script template’s scheduler name is set. Default scheduler will be used if neither specified.

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 is the name of the ServiceAccount to run all pods of the workflow as.

Source

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

Shutdown will shutdown the workflow according to its ShutdownStrategy

Source

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

Suspend will suspend the workflow and prevent execution of any future steps in the workflow

Source

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

Synchronization holds synchronization lock configuration for this Workflow

Source

pub fn template_defaults( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Template>, ) -> &mut Self

TemplateDefaults holds default template values that will apply to all templates in the Workflow, unless overridden on the template-level

Source

pub fn templates( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1Template>, ) -> &mut Self

Templates is a list of workflow templates used in a workflow

Source

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

Tolerations to apply to workflow pods.

Source

pub fn ttl_strategy( &mut self, value: Option<IoArgoprojWorkflowV1alpha1TtlStrategy>, ) -> &mut Self

TTLStrategy limits the lifetime of a Workflow that has finished execution depending on if it Succeeded or Failed. If this struct is set, once the Workflow finishes, it will be deleted after the time to live expires. If this field is unset, the controller config map will hold the default values.

Source

pub fn volume_claim_gc( &mut self, value: Option<IoArgoprojWorkflowV1alpha1VolumeClaimGc>, ) -> &mut Self

VolumeClaimGC describes the strategy to use when deleting volumes from completed workflows

Source

pub fn volume_claim_templates( &mut self, value: Vec<IoK8sApiCoreV1PersistentVolumeClaim>, ) -> &mut Self

VolumeClaimTemplates is a list of claims that containers are allowed to reference. The Workflow controller will create the claims at the beginning of the workflow and delete the claims upon completion of the workflow

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 io.argoproj.workflow.v1alpha1.

Source

pub fn workflow_metadata( &mut self, value: Option<IoArgoprojWorkflowV1alpha1WorkflowMetadata>, ) -> &mut Self

WorkflowMetadata contains some metadata of the workflow to refer to

Source

pub fn workflow_template_ref( &mut self, value: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplateRef>, ) -> &mut Self

WorkflowTemplateRef holds a reference to a WorkflowTemplate for execution

Source

pub fn build( &self, ) -> Result<IoArgoprojWorkflowV1alpha1WorkflowSpec, IoArgoprojWorkflowV1alpha1WorkflowSpecBuilderError>

Builds a new IoArgoprojWorkflowV1alpha1WorkflowSpec.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Clone for IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder

Source§

fn clone(&self) -> IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder

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 IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder

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.