From a3e841faeab9e7df2c787ac008a9ee1f72ee106e Mon Sep 17 00:00:00 2001 From: Alex Capras Date: Wed, 10 Jul 2019 02:03:54 +0100 Subject: [PATCH] issue-1445: changing temp directory for output artifacts from root to tmp (#1458) --- workflow/executor/executor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/executor/executor.go b/workflow/executor/executor.go index 698b36dc16eb..3b1a17b3380c 100644 --- a/workflow/executor/executor.go +++ b/workflow/executor/executor.go @@ -45,7 +45,7 @@ import ( const ( // This directory temporarily stores the tarballs of the artifacts before uploading - tempOutArtDir = "/argo/outputs/artifacts" + tempOutArtDir = "/tmp/argo/outputs/artifacts" ) // WorkflowExecutor is program which runs as the init/wait container @@ -447,7 +447,7 @@ func (we *WorkflowExecutor) SaveLogs() (*wfv1.Artifact, error) { if err != nil { return nil, err } - tempLogsDir := "/argo/outputs/logs" + tempLogsDir := "/tmp/argo/outputs/logs" err = os.MkdirAll(tempLogsDir, os.ModePerm) if err != nil { return nil, errors.InternalWrapError(err)