builder: Pass cdi cache instead of CDISpecDirs

Instead of passing the dirs for buildkit to configure the same cache
instance, just pass the shared CDI cache instance.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2025-05-26 18:00:33 +02:00
parent bc6bc7aafa
commit 027588eba0
5 changed files with 22 additions and 27 deletions

View File

@@ -86,6 +86,7 @@ import (
"google.golang.org/grpc/backoff"
"google.golang.org/grpc/credentials/insecure"
"resenje.org/singleflight"
"tags.cncf.io/container-device-interface/pkg/cdi"
)
type configStore struct {
@@ -149,6 +150,8 @@ type Daemon struct {
mdDB *bolt.DB
usesSnapshotter bool
CDICache *cdi.Cache
}
// ID returns the daemon id