Skip to content

Commit

Permalink
Drift
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal committed Nov 5, 2021
1 parent ba0bede commit 8a3770a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pkg/instrumentation/nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestInjectNodeJSSDK(t *testing.T) {
{
Name: initContainerName,
Image: "foo/bar:1",
Command: []string{"cp", "-R", "/autoinstrumentation/*", "/otel-auto-instrumentation/"},
Command: []string{"cp", "-a", "/autoinstrumentation/.", "/otel-auto-instrumentation/"},
VolumeMounts: []corev1.VolumeMount{{
Name: volumeName,
MountPath: "/otel-auto-instrumentation",
Expand All @@ -73,7 +73,7 @@ func TestInjectNodeJSSDK(t *testing.T) {
Env: []corev1.EnvVar{
{
Name: "NODE_OPTIONS",
Value: javaJVMArgument,
Value: nodeRequireArgument,
},
},
},
Expand Down Expand Up @@ -112,7 +112,7 @@ func TestInjectNodeJSSDK(t *testing.T) {
{
Name: initContainerName,
Image: "foo/bar:1",
Command: []string{"cp", "-R", "/autoinstrumentation/*", "/otel-auto-instrumentation/"},
Command: []string{"cp", "-a", "/autoinstrumentation/.", "/otel-auto-instrumentation/"},
VolumeMounts: []corev1.VolumeMount{{
Name: volumeName,
MountPath: "/otel-auto-instrumentation",
Expand All @@ -130,7 +130,7 @@ func TestInjectNodeJSSDK(t *testing.T) {
Env: []corev1.EnvVar{
{
Name: "NODE_OPTIONS",
Value: "-Dbaz=bar" + javaJVMArgument,
Value: "-Dbaz=bar" + nodeRequireArgument,
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/instrumentation/podmutator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func TestMutatePod(t *testing.T) {
Namespace: "nodejs",
},
Spec: v1alpha1.InstrumentationSpec{
Java: v1alpha1.JavaSpec{
NodeJS: v1alpha1.NodeJSSpec{
Image: "otel/nodejs:1",
},
Exporter: v1alpha1.Exporter{
Expand Down Expand Up @@ -228,7 +228,7 @@ func TestMutatePod(t *testing.T) {
InitContainers: []corev1.Container{
{
Name: initContainerName,
Image: "otel/java:1",
Image: "otel/nodejs:1",
Command: []string{"cp", "-a", "/autoinstrumentation/.", "/otel-auto-instrumentation/"},
VolumeMounts: []corev1.VolumeMount{{
Name: volumeName,
Expand Down

0 comments on commit 8a3770a

Please sign in to comment.