Skip to content

Commit

Permalink
Please go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Oct 17, 2024
1 parent 30ca5d2 commit 3f20ea1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions pkg/instrumentation/podmutator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,8 @@ func TestMutatePod(t *testing.T) {
{
Name: pythonInitContainerName,
Image: "otel/python:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: pythonVolumeName,
MountPath: pythonInstrMountPath,
Expand Down Expand Up @@ -1524,8 +1524,8 @@ func TestMutatePod(t *testing.T) {
{
Name: pythonInitContainerName,
Image: "otel/python:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: pythonVolumeName,
MountPath: pythonInstrMountPath,
Expand Down Expand Up @@ -3645,8 +3645,8 @@ func TestMutatePod(t *testing.T) {
{
Name: pythonInitContainerName,
Image: "otel/python:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: pythonVolumeName,
MountPath: pythonInstrMountPath,
Expand Down
14 changes: 7 additions & 7 deletions pkg/instrumentation/python_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestInjectPythonSDK(t *testing.T) {
Name: "opentelemetry-auto-instrumentation-python",
Image: "foo/bar:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: "opentelemetry-auto-instrumentation-python",
MountPath: "/otel-auto-instrumentation-python",
Expand Down Expand Up @@ -135,7 +135,7 @@ func TestInjectPythonSDK(t *testing.T) {
Name: "opentelemetry-auto-instrumentation-python",
Image: "foo/bar:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: "opentelemetry-auto-instrumentation-python",
MountPath: "/otel-auto-instrumentation-python",
Expand Down Expand Up @@ -210,7 +210,7 @@ func TestInjectPythonSDK(t *testing.T) {
Name: "opentelemetry-auto-instrumentation-python",
Image: "foo/bar:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: "opentelemetry-auto-instrumentation-python",
MountPath: "/otel-auto-instrumentation-python",
Expand Down Expand Up @@ -284,7 +284,7 @@ func TestInjectPythonSDK(t *testing.T) {
Name: "opentelemetry-auto-instrumentation-python",
Image: "foo/bar:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: "opentelemetry-auto-instrumentation-python",
MountPath: "/otel-auto-instrumentation-python",
Expand Down Expand Up @@ -358,7 +358,7 @@ func TestInjectPythonSDK(t *testing.T) {
Name: "opentelemetry-auto-instrumentation-python",
Image: "foo/bar:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: "opentelemetry-auto-instrumentation-python",
MountPath: "/otel-auto-instrumentation-python",
Expand Down Expand Up @@ -459,7 +459,7 @@ func TestInjectPythonSDK(t *testing.T) {
Name: "opentelemetry-auto-instrumentation-python",
Image: "foo/bar:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation-musl/. && cp -r /autoinstrumentation-musl/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Args: []string{"-c", "test -d /autoinstrumentation-musl/. && cp -r /autoinstrumentation-musl/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: "opentelemetry-auto-instrumentation-python",
MountPath: "/otel-auto-instrumentation-python",
Expand Down Expand Up @@ -526,7 +526,7 @@ func TestInjectPythonSDK(t *testing.T) {
Name: "opentelemetry-auto-instrumentation-python",
Image: "foo/bar:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: "opentelemetry-auto-instrumentation-python",
MountPath: "/otel-auto-instrumentation-python",
Expand Down
4 changes: 2 additions & 2 deletions pkg/instrumentation/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1211,8 +1211,8 @@ func TestInjectPython(t *testing.T) {
{
Name: pythonInitContainerName,
Image: "img:1",
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
Command: []string{"/bin/sh"},
Args: []string{"-c", "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python"},
VolumeMounts: []corev1.VolumeMount{{
Name: pythonVolumeName,
MountPath: pythonInstrMountPath,
Expand Down

0 comments on commit 3f20ea1

Please sign in to comment.