File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,13 +73,12 @@ func init() {
7373
7474 options := & images.CRIImageServiceOptions {
7575 Content : mdb .ContentStore (),
76- Images : metadata .NewImageStore (mdb ),
7776 RuntimePlatforms : map [string ]images.ImagePlatform {},
7877 Snapshotters : map [string ]snapshots.Snapshotter {},
7978 ImageFSPaths : map [string ]string {},
8079 }
8180
82- options . Client , err = containerd .New (
81+ ctrdCli , err : = containerd .New (
8382 "" ,
8483 containerd .WithDefaultNamespace (constants .K8sContainerdNamespace ),
8584 containerd .WithDefaultPlatform (platforms .Default ()),
@@ -88,6 +87,8 @@ func init() {
8887 if err != nil {
8988 return nil , fmt .Errorf ("unable to init client for cri image service: %w" , err )
9089 }
90+ options .Images = ctrdCli .ImageService ()
91+ options .Client = ctrdCli
9192
9293 allSnapshotters := mdb .Snapshotters ()
9394 defaultSnapshotter := config .Snapshotter
You can’t perform that action at this time.
0 commit comments