@@ -19,24 +19,24 @@ package podsandbox
1919import (
2020 "context"
2121 "fmt"
22- goruntime "runtime"
2322 "time"
2423
24+ "github.com/sirupsen/logrus"
25+ runtime "k8s.io/cri-api/pkg/apis/runtime/v1"
26+
2527 "github.com/containerd/containerd"
2628 eventtypes "github.com/containerd/containerd/api/events"
2729 api "github.com/containerd/containerd/api/services/sandbox/v1"
28- "github.com/containerd/containerd/api/types"
2930 "github.com/containerd/containerd/errdefs"
3031 "github.com/containerd/containerd/oci"
3132 criconfig "github.com/containerd/containerd/pkg/cri/config"
3233 imagestore "github.com/containerd/containerd/pkg/cri/store/image"
3334 sandboxstore "github.com/containerd/containerd/pkg/cri/store/sandbox"
3435 ctrdutil "github.com/containerd/containerd/pkg/cri/util"
3536 osinterface "github.com/containerd/containerd/pkg/os"
37+ "github.com/containerd/containerd/platforms"
3638 "github.com/containerd/containerd/protobuf"
3739 "github.com/containerd/containerd/sandbox"
38- "github.com/sirupsen/logrus"
39- runtime "k8s.io/cri-api/pkg/apis/runtime/v1"
4040)
4141
4242// CRIService interface contains things required by controller, but not yet refactored from criService.
@@ -86,11 +86,8 @@ func New(
8686
8787var _ sandbox.Controller = (* Controller )(nil )
8888
89- func (c * Controller ) Platform (_ctx context.Context , _sandboxID string ) (* types.Platform , error ) {
90- return & types.Platform {
91- OS : goruntime .GOOS ,
92- Architecture : goruntime .GOARCH ,
93- }, nil
89+ func (c * Controller ) Platform (_ctx context.Context , _sandboxID string ) (platforms.Platform , error ) {
90+ return platforms .DefaultSpec (), nil
9491}
9592
9693func (c * Controller ) Wait (ctx context.Context , sandboxID string ) (* api.ControllerWaitResponse , error ) {
0 commit comments