Skip to content

Commit 3f20ea1

Browse files
committed
Please go fmt
1 parent 30ca5d2 commit 3f20ea1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

pkg/instrumentation/podmutator_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,8 @@ func TestMutatePod(t *testing.T) {
13221322
{
13231323
Name: pythonInitContainerName,
13241324
Image: "otel/python:1",
1325-
Command: []string{"/bin/sh"},
1326-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
1325+
Command: []string{"/bin/sh"},
1326+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
13271327
VolumeMounts: []corev1.VolumeMount{{
13281328
Name: pythonVolumeName,
13291329
MountPath: pythonInstrMountPath,
@@ -1524,8 +1524,8 @@ func TestMutatePod(t *testing.T) {
15241524
{
15251525
Name: pythonInitContainerName,
15261526
Image: "otel/python:1",
1527-
Command: []string{"/bin/sh"},
1528-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
1527+
Command: []string{"/bin/sh"},
1528+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
15291529
VolumeMounts: []corev1.VolumeMount{{
15301530
Name: pythonVolumeName,
15311531
MountPath: pythonInstrMountPath,
@@ -3645,8 +3645,8 @@ func TestMutatePod(t *testing.T) {
36453645
{
36463646
Name: pythonInitContainerName,
36473647
Image: "otel/python:1",
3648-
Command: []string{"/bin/sh"},
3649-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
3648+
Command: []string{"/bin/sh"},
3649+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
36503650
VolumeMounts: []corev1.VolumeMount{{
36513651
Name: pythonVolumeName,
36523652
MountPath: pythonInstrMountPath,

pkg/instrumentation/python_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestInjectPythonSDK(t *testing.T) {
6161
Name: "opentelemetry-auto-instrumentation-python",
6262
Image: "foo/bar:1",
6363
Command: []string{"/bin/sh"},
64-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
64+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
6565
VolumeMounts: []corev1.VolumeMount{{
6666
Name: "opentelemetry-auto-instrumentation-python",
6767
MountPath: "/otel-auto-instrumentation-python",
@@ -135,7 +135,7 @@ func TestInjectPythonSDK(t *testing.T) {
135135
Name: "opentelemetry-auto-instrumentation-python",
136136
Image: "foo/bar:1",
137137
Command: []string{"/bin/sh"},
138-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
138+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
139139
VolumeMounts: []corev1.VolumeMount{{
140140
Name: "opentelemetry-auto-instrumentation-python",
141141
MountPath: "/otel-auto-instrumentation-python",
@@ -210,7 +210,7 @@ func TestInjectPythonSDK(t *testing.T) {
210210
Name: "opentelemetry-auto-instrumentation-python",
211211
Image: "foo/bar:1",
212212
Command: []string{"/bin/sh"},
213-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
213+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
214214
VolumeMounts: []corev1.VolumeMount{{
215215
Name: "opentelemetry-auto-instrumentation-python",
216216
MountPath: "/otel-auto-instrumentation-python",
@@ -284,7 +284,7 @@ func TestInjectPythonSDK(t *testing.T) {
284284
Name: "opentelemetry-auto-instrumentation-python",
285285
Image: "foo/bar:1",
286286
Command: []string{"/bin/sh"},
287-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
287+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
288288
VolumeMounts: []corev1.VolumeMount{{
289289
Name: "opentelemetry-auto-instrumentation-python",
290290
MountPath: "/otel-auto-instrumentation-python",
@@ -358,7 +358,7 @@ func TestInjectPythonSDK(t *testing.T) {
358358
Name: "opentelemetry-auto-instrumentation-python",
359359
Image: "foo/bar:1",
360360
Command: []string{"/bin/sh"},
361-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
361+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
362362
VolumeMounts: []corev1.VolumeMount{{
363363
Name: "opentelemetry-auto-instrumentation-python",
364364
MountPath: "/otel-auto-instrumentation-python",
@@ -459,7 +459,7 @@ func TestInjectPythonSDK(t *testing.T) {
459459
Name: "opentelemetry-auto-instrumentation-python",
460460
Image: "foo/bar:1",
461461
Command: []string{"/bin/sh"},
462-
Args: []string{"-c", "test -d /autoinstrumentation-musl/. && cp -r /autoinstrumentation-musl/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
462+
Args: []string{"-c", "test -d /autoinstrumentation-musl/. && cp -r /autoinstrumentation-musl/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
463463
VolumeMounts: []corev1.VolumeMount{{
464464
Name: "opentelemetry-auto-instrumentation-python",
465465
MountPath: "/otel-auto-instrumentation-python",
@@ -526,7 +526,7 @@ func TestInjectPythonSDK(t *testing.T) {
526526
Name: "opentelemetry-auto-instrumentation-python",
527527
Image: "foo/bar:1",
528528
Command: []string{"/bin/sh"},
529-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
529+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
530530
VolumeMounts: []corev1.VolumeMount{{
531531
Name: "opentelemetry-auto-instrumentation-python",
532532
MountPath: "/otel-auto-instrumentation-python",

pkg/instrumentation/sdk_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1211,8 +1211,8 @@ func TestInjectPython(t *testing.T) {
12111211
{
12121212
Name: pythonInitContainerName,
12131213
Image: "img:1",
1214-
Command: []string{"/bin/sh"},
1215-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
1214+
Command: []string{"/bin/sh"},
1215+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
12161216
VolumeMounts: []corev1.VolumeMount{{
12171217
Name: pythonVolumeName,
12181218
MountPath: pythonInstrMountPath,

0 commit comments

Comments
 (0)