Skip to content

Commit

Permalink
Update operator.go (#1630)
Browse files Browse the repository at this point in the history
* Update operator.go

* update API
  • Loading branch information
sarabala1979 authored Sep 30, 2019
1 parent 6acea0c commit 2f0af52
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
11 changes: 11 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,10 @@
"type": {
"description": "Type indicates type of node",
"type": "string"
},
"workflowTemplateName": {
"description": "WorkflowTemplateName is the WorkflowTemplate resource name on which the resolved template of this node is retrieved.",
"type": "string"
}
}
},
Expand Down Expand Up @@ -1586,6 +1590,13 @@
"startedAt": {
"description": "Time at which this workflow started",
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
},
"storedTemplates": {
"description": "StoredTemplates is a mapping between a template ref and the node's status.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Template"
}
}
}
},
Expand Down
23 changes: 22 additions & 1 deletion pkg/apis/workflow/v1alpha1/openapi_generated.go

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

2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ func (woc *wfOperationCtx) executeTemplate(nodeName string, orgTmpl wfv1.Templat
// Memoized nodes don't have StartedAt.
if node.StartedAt.IsZero() {
node.StartedAt = metav1.Time{Time: time.Now().UTC()}
woc.wf.Status.Nodes[node.ID] = *node
woc.wf.Status.Nodes[node.ID] = *node
woc.updated = true
}
}
Expand Down

0 comments on commit 2f0af52

Please sign in to comment.