Skip to content

Commit 0de5401

Browse files
imjasonhtekton-robot
authored andcommitted
Don't set TTY:true in place-scripts
1 parent 290899a commit 0de5401

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/tektoncd/pipeline
33
go 1.13
44

55
require (
6+
cloud.google.com/go/storage v1.8.0
67
contrib.go.opencensus.io/exporter/stackdriver v0.13.1 // indirect
78
github.com/GoogleCloudPlatform/cloud-builders/gcs-fetcher v0.0.0-20191203181535-308b93ad1f39
89
github.com/cloudevents/sdk-go/v2 v2.1.0
@@ -24,6 +25,7 @@ require (
2425
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
2526
golang.org/x/text v0.3.3 // indirect
2627
gomodules.xyz/jsonpatch/v2 v2.1.0
28+
google.golang.org/api v0.25.0
2729
k8s.io/api v0.17.6
2830
k8s.io/apimachinery v0.17.6
2931
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible

pkg/pod/pod_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,6 @@ func TestPodBuild(t *testing.T) {
518518
Name: "place-scripts",
519519
Image: "busybox",
520520
Command: []string{"sh"},
521-
TTY: true,
522521
VolumeMounts: []corev1.VolumeMount{scriptsVolumeMount},
523522
Args: []string{"-c", `tmpfile="/tekton/scripts/sidecar-script-0-9l9zj"
524523
touch ${tmpfile} && chmod +x ${tmpfile}
@@ -756,7 +755,6 @@ print("Hello from Python")`,
756755
Name: "place-scripts",
757756
Image: images.ShellImage,
758757
Command: []string{"sh"},
759-
TTY: true,
760758
Args: []string{"-c", `tmpfile="/tekton/scripts/script-0-9l9zj"
761759
touch ${tmpfile} && chmod +x ${tmpfile}
762760
cat > ${tmpfile} << 'script-heredoc-randomly-generated-mz4c7'

pkg/pod/script.go

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ func convertScripts(shellImage string, steps []v1beta1.Step, sidecars []v1beta1.
5555
placeScriptsInit := corev1.Container{
5656
Name: "place-scripts",
5757
Image: shellImage,
58-
TTY: true,
5958
Command: []string{"sh"},
6059
Args: []string{"-c", ""},
6160
VolumeMounts: []corev1.VolumeMount{scriptsVolumeMount},

pkg/pod/script_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ script-3`,
157157
wantInit := &corev1.Container{
158158
Name: "place-scripts",
159159
Image: images.ShellImage,
160-
TTY: true,
161160
Command: []string{"sh"},
162161
Args: []string{"-c", `tmpfile="/tekton/scripts/script-0-9l9zj"
163162
touch ${tmpfile} && chmod +x ${tmpfile}
@@ -249,7 +248,6 @@ sidecar-1`,
249248
wantInit := &corev1.Container{
250249
Name: "place-scripts",
251250
Image: images.ShellImage,
252-
TTY: true,
253251
Command: []string{"sh"},
254252
Args: []string{"-c", `tmpfile="/tekton/scripts/script-0-9l9zj"
255253
touch ${tmpfile} && chmod +x ${tmpfile}

0 commit comments

Comments
 (0)