Merge pull request #12566 from rawahars/main

Set annotations parameter in CreateSandbox request
This commit is contained in:
Maksym Pavlenko
2026-01-05 18:45:37 +00:00
committed by GitHub

View File

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