fix: Fix opentelemetry dependencies issues (#1122)

Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
This commit is contained in:
Heba Elayoty
2023-06-15 18:23:16 -07:00
committed by GitHub
parent ad4739b7e4
commit 077ee93fa2
11 changed files with 270 additions and 483 deletions

View File

@@ -402,7 +402,10 @@ func (pc *PodController) Run(ctx context.Context, podSyncWorkers int) (retErr er
}
}
pc.podsInformer.Informer().AddEventHandler(eventHandler)
_, err := pc.podsInformer.Informer().AddEventHandler(eventHandler)
if err != nil {
log.G(ctx).Error(err)
}
// Perform a reconciliation step that deletes any dangling pods from the provider.
// This happens only when the virtual-kubelet is starting, and operates on a "best-effort" basis.