Merge pull request #1593 from moolen/fix/add-nri-labels
Add missing sandbox labels when invoking nri
This commit is contained in:
commit
a0b3b4e4da
@ -127,6 +127,7 @@ func (c *criService) StartContainer(ctx context.Context, r *runtime.StartContain
|
|||||||
if nric != nil {
|
if nric != nil {
|
||||||
nriSB := &nri.Sandbox{
|
nriSB := &nri.Sandbox{
|
||||||
ID: sandboxID,
|
ID: sandboxID,
|
||||||
|
Labels: sandbox.Config.Labels,
|
||||||
}
|
}
|
||||||
if _, err := nric.InvokeWithSandbox(ctx, task, v1.Create, nriSB); err != nil {
|
if _, err := nric.InvokeWithSandbox(ctx, task, v1.Create, nriSB); err != nil {
|
||||||
return nil, errors.Wrap(err, "nri invoke")
|
return nil, errors.Wrap(err, "nri invoke")
|
||||||
|
Loading…
Reference in New Issue
Block a user