remove taskService and imageStoreService
Signed-off-by: yason <yan.xuean@zte.com.cn>
This commit is contained in:
@@ -25,8 +25,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/containerd/containerd"
|
||||
"github.com/containerd/containerd/api/services/tasks/v1"
|
||||
"github.com/containerd/containerd/images"
|
||||
"github.com/containerd/containerd/plugin"
|
||||
"github.com/containerd/containerd/sys"
|
||||
"github.com/cri-o/ocicni/pkg/ocicni"
|
||||
@@ -93,11 +91,6 @@ type criContainerdService struct {
|
||||
imageStore *imagestore.Store
|
||||
// snapshotStore stores information of all snapshots.
|
||||
snapshotStore *snapshotstore.Store
|
||||
// taskService is containerd tasks client.
|
||||
taskService tasks.TasksClient
|
||||
// imageStoreService is the containerd service to store and track
|
||||
// image metadata.
|
||||
imageStoreService images.Store
|
||||
// netPlugin is used to setup and teardown network when run/stop pod sandbox.
|
||||
netPlugin ocicni.CNIPlugin
|
||||
// client is an instance of the containerd client
|
||||
@@ -138,8 +131,6 @@ func NewCRIContainerdService(config options.Config) (CRIContainerdService, error
|
||||
snapshotStore: snapshotstore.NewStore(),
|
||||
sandboxNameIndex: registrar.NewRegistrar(),
|
||||
containerNameIndex: registrar.NewRegistrar(),
|
||||
taskService: client.TaskService(),
|
||||
imageStoreService: client.ImageService(),
|
||||
client: client,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user