Skip to content

Commit

Permalink
feat: workflow template support record last run time with workqueue. F…
Browse files Browse the repository at this point in the history
…ixes #1915

Signed-off-by: qingfeng777 <[email protected]>
  • Loading branch information
qingfeng777 committed Nov 16, 2024
1 parent 6da0ff8 commit 53295ab
Show file tree
Hide file tree
Showing 33 changed files with 1,696 additions and 721 deletions.
16 changes: 16 additions & 0 deletions api/jsonschema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions docs/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ WorkflowTemplate is the definition of a workflow template resource
|`kind`|`string`|Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds|
|`metadata`|[`ObjectMeta`](#objectmeta)|_No description available_|
|`spec`|[`WorkflowSpec`](#workflowspec)|_No description available_|
|`status`|[`WorkflowTemplateStatus`](#workflowtemplatestatus)|_No description available_|

## WorkflowEventBinding

Expand Down Expand Up @@ -1317,6 +1318,15 @@ CronWorkflowStatus is the status of a CronWorkflow
|`phase`|`string`|v3.6 and after: Phase is an enum of Active or Stopped. It changes to Stopped when stopStrategy.expression is true|
|`succeeded`|`integer`|v3.6 and after: Succeeded counts how many times child workflows succeeded|

## WorkflowTemplateStatus

WorkflowTemplateStatus contains overall status information about a WorkflowTemplate

### Fields
| Field Name | Field Type | Description |
|:----------:|:----------:|---------------|
|`lastRunAt`|[`Time`](#time)|Time at which this workflowtemplate last run|

## WorkflowEventBindingSpec

_No description available_
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions manifests/base/crds/full/argoproj.io_workflowtemplates.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions manifests/quick-start-minimal.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions manifests/quick-start-mysql.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions manifests/quick-start-postgres.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
type ClusterWorkflowTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
Spec WorkflowSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
Spec WorkflowSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
Status WorkflowTemplateStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

type ClusterWorkflowTemplates []ClusterWorkflowTemplate
Expand Down
Loading

0 comments on commit 53295ab

Please sign in to comment.