@@ -338,7 +338,7 @@ func (c *criService) CreateContainer(ctx context.Context, r *runtime.CreateConta
338338// volumeMounts sets up image volumes for container. Rely on the removal of container
339339// root directory to do cleanup. Note that image volume will be skipped, if there is criMounts
340340// specified with the same destination.
341- func (c * criService ) volumeMounts (platform platforms .Platform , containerRootDir string , criMounts []* runtime.Mount , config * imagespec.ImageConfig ) []* runtime.Mount {
341+ func (c * criService ) volumeMounts (platform imagespec .Platform , containerRootDir string , criMounts []* runtime.Mount , config * imagespec.ImageConfig ) []* runtime.Mount {
342342 if len (config .Volumes ) == 0 {
343343 return nil
344344 }
@@ -374,7 +374,7 @@ func (c *criService) volumeMounts(platform platforms.Platform, containerRootDir
374374}
375375
376376// runtimeSpec returns a default runtime spec used in cri-containerd.
377- func (c * criService ) runtimeSpec (id string , platform platforms .Platform , baseSpecFile string , opts ... oci.SpecOpts ) (* runtimespec.Spec , error ) {
377+ func (c * criService ) runtimeSpec (id string , platform imagespec .Platform , baseSpecFile string , opts ... oci.SpecOpts ) (* runtimespec.Spec , error ) {
378378 // GenerateSpec needs namespace.
379379 ctx := util .NamespacedContext ()
380380 container := & containers.Container {ID : id }
@@ -468,7 +468,7 @@ func generateUserString(username string, uid, gid *runtime.Int64Value) (string,
468468// runtime information (rootfs mounted), or platform specific checks with
469469// no defined workaround (yet) to specify for other platforms.
470470func (c * criService ) platformSpecOpts (
471- platform platforms .Platform ,
471+ platform imagespec .Platform ,
472472 config * runtime.ContainerConfig ,
473473 imageConfig * imagespec.ImageConfig ,
474474) ([]oci.SpecOpts , error ) {
@@ -515,7 +515,7 @@ func (c *criService) platformSpecOpts(
515515
516516// buildContainerSpec build container's OCI spec depending on controller's target platform OS.
517517func (c * criService ) buildContainerSpec (
518- platform platforms .Platform ,
518+ platform imagespec .Platform ,
519519 id string ,
520520 sandboxID string ,
521521 sandboxPid uint32 ,
0 commit comments