pub struct IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder { /* private fields */ }Expand description
Builder for IoArgoprojWorkflowV1alpha1WorkflowSpec.
Implementations§
Source§impl IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder
impl IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder
Sourcepub fn active_deadline_seconds(&mut self, value: Option<i64>) -> &mut Self
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
Sourcepub fn affinity(&mut self, value: Option<IoK8sApiCoreV1Affinity>) -> &mut Self
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
Sourcepub fn archive_logs(&mut self, value: Option<bool>) -> &mut Self
pub fn archive_logs(&mut self, value: Option<bool>) -> &mut Self
ArchiveLogs indicates if the container logs should be archived
Sourcepub fn arguments(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Arguments>,
) -> &mut Self
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}}
Sourcepub fn artifact_gc(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc>,
) -> &mut Self
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)
Sourcepub fn artifact_repository_ref(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef>,
) -> &mut Self
pub fn artifact_repository_ref( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef>, ) -> &mut Self
ArtifactRepositoryRef specifies the configMap name and key containing the artifact repository config.
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 dns_config(
&mut self,
value: Option<IoK8sApiCoreV1PodDnsConfig>,
) -> &mut Self
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.
Sourcepub fn dns_policy(&mut self, value: Option<String>) -> &mut Self
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’.
Sourcepub fn entrypoint(&mut self, value: Option<String>) -> &mut Self
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.
Sourcepub fn executor(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>,
) -> &mut Self
pub fn executor( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>, ) -> &mut Self
Executor holds configurations of executor containers of the io.argoproj.workflow.v1alpha1.
Sourcepub fn hooks(
&mut self,
value: HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>,
) -> &mut Self
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
pub fn host_aliases(&mut self, value: Vec<IoK8sApiCoreV1HostAlias>) -> &mut Self
Sourcepub fn host_network(&mut self, value: Option<bool>) -> &mut Self
pub fn host_network(&mut self, value: Option<bool>) -> &mut Self
Host networking requested for this workflow pod. Default to false.
Sourcepub fn image_pull_secrets(
&mut self,
value: Vec<IoK8sApiCoreV1LocalObjectReference>,
) -> &mut Self
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
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 Workflow
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 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.
Sourcepub fn on_exit(&mut self, value: Option<String>) -> &mut Self
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.
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 in a workflow
Sourcepub fn pod_disruption_budget(
&mut self,
value: Option<IoK8sApiPolicyV1PodDisruptionBudgetSpec>,
) -> &mut Self
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.
Sourcepub fn pod_gc(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1PodGc>,
) -> &mut Self
pub fn pod_gc( &mut self, value: Option<IoArgoprojWorkflowV1alpha1PodGc>, ) -> &mut Self
PodGC describes the strategy to use when deleting completed pods
Sourcepub fn pod_metadata(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Metadata>,
) -> &mut Self
pub fn pod_metadata( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Metadata>, ) -> &mut Self
PodMetadata defines additional metadata that should be applied to workflow pods
Sourcepub fn pod_priority(&mut self, value: Option<i64>) -> &mut Self
pub fn pod_priority(&mut self, value: Option<i64>) -> &mut Self
Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.
Sourcepub fn pod_priority_class_name(&mut self, value: Option<String>) -> &mut Self
pub fn pod_priority_class_name(&mut self, value: Option<String>) -> &mut Self
PriorityClassName to apply to workflow pods.
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 is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first.
Sourcepub fn retry_strategy(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>,
) -> &mut Self
pub fn retry_strategy( &mut self, value: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>, ) -> &mut Self
RetryStrategy for all templates in the io.argoproj.workflow.v1alpha1.
Sourcepub fn scheduler_name(&mut self, value: Option<String>) -> &mut Self
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.
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 is the name of the ServiceAccount to run all pods of the workflow as.
Sourcepub fn shutdown(&mut self, value: Option<String>) -> &mut Self
pub fn shutdown(&mut self, value: Option<String>) -> &mut Self
Shutdown will shutdown the workflow according to its ShutdownStrategy
Sourcepub fn suspend(&mut self, value: Option<bool>) -> &mut Self
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
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 Workflow
Sourcepub fn template_defaults(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Template>,
) -> &mut Self
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
Sourcepub fn templates(
&mut self,
value: Vec<IoArgoprojWorkflowV1alpha1Template>,
) -> &mut Self
pub fn templates( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1Template>, ) -> &mut Self
Templates is a list of workflow templates used in a workflow
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 ttl_strategy(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1TtlStrategy>,
) -> &mut Self
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.
Sourcepub fn volume_claim_gc(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1VolumeClaimGc>,
) -> &mut Self
pub fn volume_claim_gc( &mut self, value: Option<IoArgoprojWorkflowV1alpha1VolumeClaimGc>, ) -> &mut Self
VolumeClaimGC describes the strategy to use when deleting volumes from completed workflows
Sourcepub fn volume_claim_templates(
&mut self,
value: Vec<IoK8sApiCoreV1PersistentVolumeClaim>,
) -> &mut Self
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
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 io.argoproj.workflow.v1alpha1.
Sourcepub fn workflow_metadata(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1WorkflowMetadata>,
) -> &mut Self
pub fn workflow_metadata( &mut self, value: Option<IoArgoprojWorkflowV1alpha1WorkflowMetadata>, ) -> &mut Self
WorkflowMetadata contains some metadata of the workflow to refer to
Sourcepub fn workflow_template_ref(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplateRef>,
) -> &mut Self
pub fn workflow_template_ref( &mut self, value: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplateRef>, ) -> &mut Self
WorkflowTemplateRef holds a reference to a WorkflowTemplate for execution
Sourcepub fn build(
&self,
) -> Result<IoArgoprojWorkflowV1alpha1WorkflowSpec, IoArgoprojWorkflowV1alpha1WorkflowSpecBuilderError>
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
impl Clone for IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder
Source§fn clone(&self) -> IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder
fn clone(&self) -> IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more