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 7461be9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion 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

0 comments on commit 7461be9

Please sign in to comment.