Merge pull request #1593 from moolen/fix/add-nri-labels

Add missing sandbox labels when invoking nri
This commit is contained in:
Michael Crosby 2020-10-07 13:17:06 -04:00 committed by GitHub
commit a0b3b4e4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")