Skip to content

Commit

Permalink
Propagate name for runs from scheduled job (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
IronPan authored and k8s-ci-robot committed Nov 4, 2018
1 parent 736991b commit e5d5e8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/apiserver/resource/resource_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ func (r *ResourceManager) ReportWorkflowResource(workflow *util.Workflow) error
runDetail := &model.RunDetail{
Run: model.Run{
UUID: runId,
DisplayName: workflow.Name,
Name: workflow.Name,
Namespace: workflow.Namespace,
CreatedAtInSec: workflow.CreationTimestamp.Unix(),
Expand Down
1 change: 1 addition & 0 deletions backend/src/apiserver/resource/resource_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ func TestReportWorkflowResource_ScheduledWorkflowIDNotEmpty_Success(t *testing.T
expectedRunDetail := &model.RunDetail{
Run: model.Run{
UUID: "WORKFLOW_1",
DisplayName: "MY_NAME",
Name: "MY_NAME",
Namespace: "MY_NAMESPACE",
CreatedAtInSec: 11,
Expand Down

0 comments on commit e5d5e8c

Please sign in to comment.