mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
Merge pull request #13940 from phillebaba/feature/cri-plugin-export
Export config in CRI plugin
This commit is contained in:
1 file changed
+6
@@ -21,6 +21,7 @@ import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
|
||||
containerd "github.com/containerd/containerd/v2/client"
|
||||
"github.com/containerd/containerd/v2/core/metadata"
|
||||
@@ -166,6 +167,11 @@ func init() {
|
||||
return nil, fmt.Errorf("failed to create image service: %w", err)
|
||||
}
|
||||
|
||||
ic.Meta.Exports = map[string]string{
|
||||
"DiscardUnpackedLayers": strconv.FormatBool(config.DiscardUnpackedLayers),
|
||||
"RegistryConfigPath": config.Registry.ConfigPath,
|
||||
}
|
||||
|
||||
return service, nil
|
||||
},
|
||||
ConfigMigration: configMigration,
|
||||
|
||||
Reference in new issue
Block a user