Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleaning up task results constant #4070

Merged
merged 1 commit into from
Jul 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package pipeline
const (
// WorkspaceDir is the root directory used for PipelineResources and (by default) Workspaces
WorkspaceDir = "/workspace"
// DefaultResultPath is the path for task result
// DefaultResultPath is the path for a task result to create the result file
DefaultResultPath = "/tekton/results"
// HomeDir is the HOME directory of PipelineResources
HomeDir = "/tekton/home"
Expand Down
7 changes: 3 additions & 4 deletions pkg/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ import (
const (
homeDir = "/tekton/home"

// ResultsDir is the folder used by default to create the results file
ResultsDir = "/tekton/results"

// TaskRunLabelKey is the name of the label added to the Pod to identify the TaskRun
TaskRunLabelKey = pipeline.GroupName + pipeline.TaskRunLabelKey

// TektonHermeticEnvVar is the env var we set in containers to indicate they should be run hermetically
TektonHermeticEnvVar = "TEKTON_HERMETIC"

// ExecutionModeAnnotation is an experimental optional annotation to set the execution mode on a TaskRun
ExecutionModeAnnotation = "experimental.tekton.dev/execution-mode"

// ExecutionModeHermetic indicates hermetic execution mode
ExecutionModeHermetic = "hermetic"
)
Expand All @@ -69,7 +68,7 @@ var (
MountPath: homeDir,
}, {
Name: "tekton-internal-results",
MountPath: ResultsDir,
MountPath: pipeline.DefaultResultPath,
}}
implicitVolumes = []corev1.Volume{{
Name: "tekton-internal-workspace",
Expand Down