Skip to content

Commit

Permalink
fix(php): correct check for first processed container (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
bduranleau-nr authored Jan 6, 2025
1 parent 94f652a commit ba9fddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apm/php.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (i *PhpInjector) Inject(ctx context.Context, inst v1alpha2.Instrumentation,
pod = i.injectNewrelicEnvConfig(ctx, inst.Spec.Resource, ns, pod, firstContainer)

// We just inject Volumes and init containers for the first processed container.
if isInitContainerMissing(pod, nodejsInitContainerName) {
if isInitContainerMissing(pod, phpInitContainerName) {
if isPodVolumeMissing(pod, volumeName) {
pod.Spec.Volumes = append(pod.Spec.Volumes, corev1.Volume{
Name: volumeName,
Expand Down

0 comments on commit ba9fddd

Please sign in to comment.