Skip to content

Commit

Permalink
refactor(*): change ResultDirSubPath to results
Browse files Browse the repository at this point in the history
  • Loading branch information
Jian Zeng committed Nov 18, 2020
1 parent 9bade06 commit 98a2d1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/workflow/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const (
// WorkflowRun status. Each line of the result should be in format: <key>:<value>
ResultFileDir = "/cyclone/results"
// ResultDirSubPath defines the subPath of ResultFileDir in coordinator sidecar volume
ResultDirSubPath = "__results__"
ResultDirSubPath = "results"

// OutputResourcesDir contains the output resources generated by workload container
OutputResourcesDir = "/cyclone/resources"
Expand Down Expand Up @@ -155,5 +155,5 @@ func PresetVolumeName(index int) string {

// ResultSubPath returns the subPath in the volume according to the containerName.
func ResultSubPath(containerName string) string {
return filepath.Join("__results__", containerName)
return filepath.Join(ResultDirSubPath, containerName)
}
2 changes: 1 addition & 1 deletion pkg/workflow/workload/pod/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ func (m *Builder) AddCoordinator() error {
},
{
Name: common.CoordinatorSidecarVolumeName,
MountPath: filepath.Join(common.CoordinatorWorkspacePath, "results"),
MountPath: filepath.Join(common.CoordinatorWorkspacePath, common.ResultDirSubPath),
SubPath: common.ResultDirSubPath,
},
},
Expand Down

0 comments on commit 98a2d1a

Please sign in to comment.