Merge pull request #8149 from Burning1020/sb-netns

sandbox: create sandbox with network namespace path
This commit is contained in:
Maksym Pavlenko
2023-03-08 14:22:00 -08:00
committed by GitHub
9 changed files with 384 additions and 337 deletions

View File

@@ -225,7 +225,7 @@ func (c *criService) RunPodSandbox(ctx context.Context, r *runtime.RunPodSandbox
runtimeStart := time.Now()
if err := controller.Create(ctx, id, sb.WithOptions(config)); err != nil {
if err := controller.Create(ctx, id, sb.WithOptions(config), sb.WithNetNSPath(sandbox.NetNSPath)); err != nil {
return nil, fmt.Errorf("failed to create sandbox %q: %w", id, err)
}