Add missing sandbox labels when invoking nri plugins
@@ -127,6 +127,7 @@ func (c *criService) StartContainer(ctx context.Context, r *runtime.StartContain
if nric != nil {
nriSB := &nri.Sandbox{
ID: sandboxID,
+ Labels: sandbox.Config.Labels,
}
if _, err := nric.InvokeWithSandbox(ctx, task, v1.Create, nriSB); err != nil {
return nil, errors.Wrap(err, "nri invoke")
