From 4deb59982d3f44940699b8746d98570d42478d05 Mon Sep 17 00:00:00 2001 From: Andrew Lozoya Date: Thu, 21 Nov 2024 12:56:14 -0600 Subject: [PATCH] Update dotnetedgewindows.go --- src/apm/dotnetedgewindows.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/apm/dotnetedgewindows.go b/src/apm/dotnetedgewindows.go index b3e32940..5d97e090 100644 --- a/src/apm/dotnetedgewindows.go +++ b/src/apm/dotnetedgewindows.go @@ -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) { @@ -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{}, }, }, )