IoArgoprojWorkflowV1alpha1WorkflowSpec

Struct IoArgoprojWorkflowV1alpha1WorkflowSpec 

Source
pub struct IoArgoprojWorkflowV1alpha1WorkflowSpec {
Show 42 fields pub active_deadline_seconds: Option<i64>, pub affinity: Option<IoK8sApiCoreV1Affinity>, pub archive_logs: Option<bool>, pub arguments: Option<IoArgoprojWorkflowV1alpha1Arguments>, pub artifact_gc: Option<IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc>, pub artifact_repository_ref: Option<IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef>, pub automount_service_account_token: Option<bool>, pub dns_config: Option<IoK8sApiCoreV1PodDnsConfig>, pub dns_policy: Option<String>, pub entrypoint: Option<String>, pub executor: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>, pub hooks: HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>, pub host_aliases: Vec<IoK8sApiCoreV1HostAlias>, pub host_network: Option<bool>, pub image_pull_secrets: Vec<IoK8sApiCoreV1LocalObjectReference>, pub metrics: Option<IoArgoprojWorkflowV1alpha1Metrics>, pub node_selector: HashMap<String, String>, pub on_exit: Option<String>, pub parallelism: Option<i64>, pub pod_disruption_budget: Option<IoK8sApiPolicyV1PodDisruptionBudgetSpec>, pub pod_gc: Option<IoArgoprojWorkflowV1alpha1PodGc>, pub pod_metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>, pub pod_priority: Option<i64>, pub pod_priority_class_name: Option<String>, pub pod_spec_patch: Option<String>, pub priority: Option<i64>, pub retry_strategy: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>, pub scheduler_name: Option<String>, pub security_context: Option<IoK8sApiCoreV1PodSecurityContext>, pub service_account_name: Option<String>, pub shutdown: Option<String>, pub suspend: Option<bool>, pub synchronization: Option<IoArgoprojWorkflowV1alpha1Synchronization>, pub template_defaults: Option<IoArgoprojWorkflowV1alpha1Template>, pub templates: Vec<IoArgoprojWorkflowV1alpha1Template>, pub tolerations: Vec<IoK8sApiCoreV1Toleration>, pub ttl_strategy: Option<IoArgoprojWorkflowV1alpha1TtlStrategy>, pub volume_claim_gc: Option<IoArgoprojWorkflowV1alpha1VolumeClaimGc>, pub volume_claim_templates: Vec<IoK8sApiCoreV1PersistentVolumeClaim>, pub volumes: Vec<IoK8sApiCoreV1Volume>, pub workflow_metadata: Option<IoArgoprojWorkflowV1alpha1WorkflowMetadata>, pub workflow_template_ref: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplateRef>,
}
Expand description

WorkflowSpec is the specification of a Workflow.

Fields§

§active_deadline_seconds: Option<i64>

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

§affinity: Option<IoK8sApiCoreV1Affinity>

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

§archive_logs: Option<bool>

ArchiveLogs indicates if the container logs should be archived

§arguments: Option<IoArgoprojWorkflowV1alpha1Arguments>

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}}

§artifact_gc: Option<IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc>

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)

§artifact_repository_ref: Option<IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef>

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

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

§dns_config: Option<IoK8sApiCoreV1PodDnsConfig>

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

§dns_policy: Option<String>

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’.

§entrypoint: Option<String>

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

§executor: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>

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

§hooks: HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>

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

§host_aliases: Vec<IoK8sApiCoreV1HostAlias>§host_network: Option<bool>

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

§image_pull_secrets: Vec<IoK8sApiCoreV1LocalObjectReference>

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

§metrics: Option<IoArgoprojWorkflowV1alpha1Metrics>

Metrics are a list of metrics emitted from this Workflow

§node_selector: HashMap<String, String>

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.

§on_exit: Option<String>

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.

§parallelism: Option<i64>

Parallelism limits the max total parallel pods that can execute at the same time in a workflow

§pod_disruption_budget: Option<IoK8sApiPolicyV1PodDisruptionBudgetSpec>

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.

§pod_gc: Option<IoArgoprojWorkflowV1alpha1PodGc>

PodGC describes the strategy to use when deleting completed pods

§pod_metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>

PodMetadata defines additional metadata that should be applied to workflow pods

§pod_priority: Option<i64>

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

§pod_priority_class_name: Option<String>

PriorityClassName to apply to workflow pods.

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

§retry_strategy: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>

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

§scheduler_name: Option<String>

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.

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

§shutdown: Option<String>

Shutdown will shutdown the workflow according to its ShutdownStrategy

§suspend: Option<bool>

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

§synchronization: Option<IoArgoprojWorkflowV1alpha1Synchronization>

Synchronization holds synchronization lock configuration for this Workflow

§template_defaults: Option<IoArgoprojWorkflowV1alpha1Template>

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

§templates: Vec<IoArgoprojWorkflowV1alpha1Template>

Templates is a list of workflow templates used in a workflow

§tolerations: Vec<IoK8sApiCoreV1Toleration>

Tolerations to apply to workflow pods.

§ttl_strategy: Option<IoArgoprojWorkflowV1alpha1TtlStrategy>

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.

§volume_claim_gc: Option<IoArgoprojWorkflowV1alpha1VolumeClaimGc>

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

§volume_claim_templates: Vec<IoK8sApiCoreV1PersistentVolumeClaim>

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

§volumes: Vec<IoK8sApiCoreV1Volume>

Volumes is a list of volumes that can be mounted by containers in a io.argoproj.workflow.v1alpha1.

§workflow_metadata: Option<IoArgoprojWorkflowV1alpha1WorkflowMetadata>

WorkflowMetadata contains some metadata of the workflow to refer to

§workflow_template_ref: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplateRef>

WorkflowTemplateRef holds a reference to a WorkflowTemplate for execution

Trait Implementations§

Source§

impl Clone for IoArgoprojWorkflowV1alpha1WorkflowSpec

Source§

fn clone(&self) -> IoArgoprojWorkflowV1alpha1WorkflowSpec

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 IoArgoprojWorkflowV1alpha1WorkflowSpec

Source§

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

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

impl Default for IoArgoprojWorkflowV1alpha1WorkflowSpec

Source§

fn default() -> IoArgoprojWorkflowV1alpha1WorkflowSpec

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

impl<'de> Deserialize<'de> for IoArgoprojWorkflowV1alpha1WorkflowSpec

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<&IoArgoprojWorkflowV1alpha1WorkflowSpec> for IoArgoprojWorkflowV1alpha1WorkflowSpec

Source§

fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowSpec) -> Self

Converts to this type from the input type.
Source§

impl Serialize for IoArgoprojWorkflowV1alpha1WorkflowSpec

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>,