Skip to content

Commit f87302a

Browse files
committed
Add missing sandbox labels when invoking nri plugins
Signed-off-by: Moritz Johner <[email protected]>
1 parent d620c30 commit f87302a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/server/container_start.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ func (c *criService) StartContainer(ctx context.Context, r *runtime.StartContain
126126
}
127127
if nric != nil {
128128
nriSB := &nri.Sandbox{
129-
ID: sandboxID,
129+
ID: sandboxID,
130+
Labels: sandbox.Config.Labels,
130131
}
131132
if _, err := nric.InvokeWithSandbox(ctx, task, v1.Create, nriSB); err != nil {
132133
return nil, errors.Wrap(err, "nri invoke")

0 commit comments

Comments
 (0)