mirror of
https://github.com/containerd/containerd.git
synced 2026-08-09 01:21:15 +00:00
Merge pull request #12566 from rawahars/main
Set annotations parameter in CreateSandbox request
This commit is contained in:
@@ -157,11 +157,12 @@ func (c *controllerLocal) Create(ctx context.Context, info sandbox.Sandbox, opts
|
||||
}
|
||||
|
||||
if _, err := svc.CreateSandbox(ctx, &runtimeAPI.CreateSandboxRequest{
|
||||
SandboxID: sandboxID,
|
||||
BundlePath: shim.Bundle(),
|
||||
Rootfs: mount.ToProto(coptions.Rootfs),
|
||||
Options: typeurl.MarshalProto(coptions.Options),
|
||||
NetnsPath: coptions.NetNSPath,
|
||||
SandboxID: sandboxID,
|
||||
BundlePath: shim.Bundle(),
|
||||
Rootfs: mount.ToProto(coptions.Rootfs),
|
||||
Options: typeurl.MarshalProto(coptions.Options),
|
||||
NetnsPath: coptions.NetNSPath,
|
||||
Annotations: coptions.Annotations,
|
||||
}); err != nil {
|
||||
c.cleanupShim(ctx, sandboxID, svc)
|
||||
return fmt.Errorf("failed to create sandbox %s: %w", sandboxID, errgrpc.ToNative(err))
|
||||
|
||||
Reference in New Issue
Block a user