Skip to content

Commit dd405a0

Browse files
committed
Please go fmt
1 parent c75f0e1 commit dd405a0

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
@@ -1326,8 +1326,8 @@ func TestMutatePod(t *testing.T) {
13261326
{
13271327
Name: pythonInitContainerName,
13281328
Image: "otel/python:1",
1329-
Command: []string{"/bin/sh"},
1330-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
1329+
Command: []string{"/bin/sh"},
1330+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
13311331
VolumeMounts: []corev1.VolumeMount{{
13321332
Name: pythonVolumeName,
13331333
MountPath: pythonInstrMountPath,
@@ -1536,8 +1536,8 @@ func TestMutatePod(t *testing.T) {
15361536
{
15371537
Name: pythonInitContainerName,
15381538
Image: "otel/python:1",
1539-
Command: []string{"/bin/sh"},
1540-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
1539+
Command: []string{"/bin/sh"},
1540+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
15411541
VolumeMounts: []corev1.VolumeMount{{
15421542
Name: pythonVolumeName,
15431543
MountPath: pythonInstrMountPath,
@@ -3669,8 +3669,8 @@ func TestMutatePod(t *testing.T) {
36693669
{
36703670
Name: pythonInitContainerName,
36713671
Image: "otel/python:1",
3672-
Command: []string{"/bin/sh"},
3673-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
3672+
Command: []string{"/bin/sh"},
3673+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
36743674
VolumeMounts: []corev1.VolumeMount{{
36753675
Name: pythonVolumeName,
36763676
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",
@@ -139,7 +139,7 @@ func TestInjectPythonSDK(t *testing.T) {
139139
Name: "opentelemetry-auto-instrumentation-python",
140140
Image: "foo/bar:1",
141141
Command: []string{"/bin/sh"},
142-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
142+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
143143
VolumeMounts: []corev1.VolumeMount{{
144144
Name: "opentelemetry-auto-instrumentation-python",
145145
MountPath: "/otel-auto-instrumentation-python",
@@ -218,7 +218,7 @@ func TestInjectPythonSDK(t *testing.T) {
218218
Name: "opentelemetry-auto-instrumentation-python",
219219
Image: "foo/bar:1",
220220
Command: []string{"/bin/sh"},
221-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
221+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
222222
VolumeMounts: []corev1.VolumeMount{{
223223
Name: "opentelemetry-auto-instrumentation-python",
224224
MountPath: "/otel-auto-instrumentation-python",
@@ -296,7 +296,7 @@ func TestInjectPythonSDK(t *testing.T) {
296296
Name: "opentelemetry-auto-instrumentation-python",
297297
Image: "foo/bar:1",
298298
Command: []string{"/bin/sh"},
299-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
299+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
300300
VolumeMounts: []corev1.VolumeMount{{
301301
Name: "opentelemetry-auto-instrumentation-python",
302302
MountPath: "/otel-auto-instrumentation-python",
@@ -450,7 +450,7 @@ func TestInjectPythonSDK(t *testing.T) {
450450
Name: "opentelemetry-auto-instrumentation-python",
451451
Image: "foo/bar:1",
452452
Command: []string{"/bin/sh"},
453-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
453+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
454454
VolumeMounts: []corev1.VolumeMount{{
455455
Name: "opentelemetry-auto-instrumentation-python",
456456
MountPath: "/otel-auto-instrumentation-python",
@@ -555,7 +555,7 @@ func TestInjectPythonSDK(t *testing.T) {
555555
Name: "opentelemetry-auto-instrumentation-python",
556556
Image: "foo/bar:1",
557557
Command: []string{"/bin/sh"},
558-
Args: []string{"-c", "test -d /autoinstrumentation-musl/. && cp -r /autoinstrumentation-musl/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
558+
Args: []string{"-c", "test -d /autoinstrumentation-musl/. && cp -r /autoinstrumentation-musl/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
559559
VolumeMounts: []corev1.VolumeMount{{
560560
Name: "opentelemetry-auto-instrumentation-python",
561561
MountPath: "/otel-auto-instrumentation-python",
@@ -622,7 +622,7 @@ func TestInjectPythonSDK(t *testing.T) {
622622
Name: "opentelemetry-auto-instrumentation-python",
623623
Image: "foo/bar:1",
624624
Command: []string{"/bin/sh"},
625-
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
625+
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
626626
VolumeMounts: []corev1.VolumeMount{{
627627
Name: "opentelemetry-auto-instrumentation-python",
628628
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)