Use options to pass PodSandboxConfig to shims

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2023-02-13 12:36:20 -08:00
parent edb8ebaf07
commit 2b24af8d13
2 changed files with 20 additions and 7 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); err != nil {
if err := controller.Create(ctx, id, sb.WithOptions(config)); err != nil {
return nil, fmt.Errorf("failed to create sandbox %q: %w", id, err)
}