Skip to content

Commit

Permalink
Remove /builder/home mount
Browse files Browse the repository at this point in the history
Users should migrate to the new path, /tekton/home, or (better yet) only
rely on the value of $HOME (which was previously moved to /tekton/home)
  • Loading branch information
imjasonh authored and tekton-robot committed Dec 9, 2019
1 parent efbcf9d commit 449cf1b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 48 deletions.
26 changes: 0 additions & 26 deletions examples/taskruns/old-home-volume.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions pkg/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
const (
workspaceDir = "/workspace"
homeDir = "/tekton/home"
oldHomeDir = "/builder/home"

taskRunLabelKey = pipeline.GroupName + pipeline.TaskRunLabelKey
ManagedByLabelKey = "app.kubernetes.io/managed-by"
Expand All @@ -57,12 +56,6 @@ var (
}, {
Name: "tekton-home",
MountPath: homeDir,
}, {
// Mount the home Volume to both /tekton/home and (old,
// deprecated) /builder/home.
// TODO(#1633): After v0.10, we can remove this old path.
Name: "tekton-home",
MountPath: oldHomeDir,
}}
implicitVolumes = []corev1.Volume{{
Name: "workspace",
Expand Down
15 changes: 0 additions & 15 deletions pkg/reconciler/taskrun/taskrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ var (
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
}

actualOps = append(actualOps, ops...)
Expand Down Expand Up @@ -309,7 +308,6 @@ func TestReconcile_ExplicitDefaultSA(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down Expand Up @@ -344,7 +342,6 @@ func TestReconcile_ExplicitDefaultSA(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down Expand Up @@ -562,7 +559,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down Expand Up @@ -597,7 +593,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down Expand Up @@ -637,7 +632,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("tools", "/tekton/tools"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
tb.PodContainer("step-mycontainer", "myimage",
tb.Command(entrypointLocation),
Expand All @@ -649,7 +643,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("tools", "/tekton/tools"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
tb.PodContainer("step-myothercontainer", "myotherimage",
tb.Command(entrypointLocation),
Expand All @@ -660,7 +653,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("tools", "/tekton/tools"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
tb.PodContainer("step-image-digest-exporter-9l9zj", "override-with-imagedigest-exporter-image:latest",
tb.Command(entrypointLocation),
Expand All @@ -671,7 +663,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("tools", "/tekton/tools"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
tb.TerminationMessagePolicy(corev1.TerminationMessageFallbackToLogsOnError),
),
),
Expand Down Expand Up @@ -712,7 +703,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
tb.PodContainer("step-mycontainer", "myimage",
tb.Command(entrypointLocation),
Expand All @@ -723,7 +713,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("tools", "/tekton/tools"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down Expand Up @@ -757,7 +746,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down Expand Up @@ -796,7 +784,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
tb.PodContainer("step-mystep", "ubuntu",
tb.Command(entrypointLocation),
Expand All @@ -806,7 +793,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("tools", "/tekton/tools"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down Expand Up @@ -839,7 +825,6 @@ func TestReconcile(t *testing.T) {
tb.VolumeMount("downward", "/tekton/downward"),
tb.VolumeMount("workspace", workspaceDir),
tb.VolumeMount("tekton-home", "/tekton/home"),
tb.VolumeMount("tekton-home", "/builder/home"),
),
),
),
Expand Down

0 comments on commit 449cf1b

Please sign in to comment.