From f87302ab209aa45d87333a2eac4e0f7a1ea61b34 Mon Sep 17 00:00:00 2001 From: Moritz Johner Date: Sat, 3 Oct 2020 23:16:23 +0200 Subject: [PATCH] Add missing sandbox labels when invoking nri plugins Signed-off-by: Moritz Johner --- pkg/server/container_start.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/server/container_start.go b/pkg/server/container_start.go index d00eb3d8e..4be89c9a6 100644 --- a/pkg/server/container_start.go +++ b/pkg/server/container_start.go @@ -126,7 +126,8 @@ func (c *criService) StartContainer(ctx context.Context, r *runtime.StartContain } if nric != nil { nriSB := &nri.Sandbox{ - ID: sandboxID, + ID: sandboxID, + Labels: sandbox.Config.Labels, } if _, err := nric.InvokeWithSandbox(ctx, task, v1.Create, nriSB); err != nil { return nil, errors.Wrap(err, "nri invoke")