Skip to content

Commit

Permalink
Merge pull request #18 from newrelic-experimental/dotnet-windows
Browse files Browse the repository at this point in the history
fix:Update dotnetedgewindows.go
  • Loading branch information
andrew-lozoya authored Nov 21, 2024
2 parents 03fa60f + 4deb599 commit ab92580
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/apm/dotnetedgewindows.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func (i DotnetEdgeWindowsInjector) Inject(ctx context.Context, inst v1alpha2.Ins
MountPath: "C:\\newrelic-instrumentation",
})
}

// We just inject Volumes and init containers for the first processed container.
if isInitContainerMissing(pod, dotnetEdgeWindowsInitContainerName) {
if isPodVolumeMissing(pod, volumeName) {
Expand All @@ -144,9 +145,7 @@ func (i DotnetEdgeWindowsInjector) Inject(ctx context.Context, inst v1alpha2.Ins
corev1.Volume{
Name: "scripts-volume",
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: "C:\\inetpub\\wwwroot\\Scripts",
},
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
},
)
Expand Down

0 comments on commit ab92580

Please sign in to comment.