Skip to content

Commit

Permalink
Don't set TTY:true in place-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored and tekton-robot committed Aug 21, 2020
1 parent 290899a commit 0de5401
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/tektoncd/pipeline
go 1.13

require (
cloud.google.com/go/storage v1.8.0
contrib.go.opencensus.io/exporter/stackdriver v0.13.1 // indirect
github.com/GoogleCloudPlatform/cloud-builders/gcs-fetcher v0.0.0-20191203181535-308b93ad1f39
github.com/cloudevents/sdk-go/v2 v2.1.0
Expand All @@ -24,6 +25,7 @@ require (
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/text v0.3.3 // indirect
gomodules.xyz/jsonpatch/v2 v2.1.0
google.golang.org/api v0.25.0
k8s.io/api v0.17.6
k8s.io/apimachinery v0.17.6
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
Expand Down
2 changes: 0 additions & 2 deletions pkg/pod/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ func TestPodBuild(t *testing.T) {
Name: "place-scripts",
Image: "busybox",
Command: []string{"sh"},
TTY: true,
VolumeMounts: []corev1.VolumeMount{scriptsVolumeMount},
Args: []string{"-c", `tmpfile="/tekton/scripts/sidecar-script-0-9l9zj"
touch ${tmpfile} && chmod +x ${tmpfile}
Expand Down Expand Up @@ -756,7 +755,6 @@ print("Hello from Python")`,
Name: "place-scripts",
Image: images.ShellImage,
Command: []string{"sh"},
TTY: true,
Args: []string{"-c", `tmpfile="/tekton/scripts/script-0-9l9zj"
touch ${tmpfile} && chmod +x ${tmpfile}
cat > ${tmpfile} << 'script-heredoc-randomly-generated-mz4c7'
Expand Down
1 change: 0 additions & 1 deletion pkg/pod/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func convertScripts(shellImage string, steps []v1beta1.Step, sidecars []v1beta1.
placeScriptsInit := corev1.Container{
Name: "place-scripts",
Image: shellImage,
TTY: true,
Command: []string{"sh"},
Args: []string{"-c", ""},
VolumeMounts: []corev1.VolumeMount{scriptsVolumeMount},
Expand Down
2 changes: 0 additions & 2 deletions pkg/pod/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ script-3`,
wantInit := &corev1.Container{
Name: "place-scripts",
Image: images.ShellImage,
TTY: true,
Command: []string{"sh"},
Args: []string{"-c", `tmpfile="/tekton/scripts/script-0-9l9zj"
touch ${tmpfile} && chmod +x ${tmpfile}
Expand Down Expand Up @@ -249,7 +248,6 @@ sidecar-1`,
wantInit := &corev1.Container{
Name: "place-scripts",
Image: images.ShellImage,
TTY: true,
Command: []string{"sh"},
Args: []string{"-c", `tmpfile="/tekton/scripts/script-0-9l9zj"
touch ${tmpfile} && chmod +x ${tmpfile}
Expand Down

0 comments on commit 0de5401

Please sign in to comment.