diff --git a/docs/cri/config.md b/docs/cri/config.md index 4d0bf6946..082637ee5 100644 --- a/docs/cri/config.md +++ b/docs/cri/config.md @@ -223,6 +223,8 @@ version = 2 enable_cdi = false # cdi_spec_dirs is the list of directories to scan for CDI spec files + # For more details about CDI configuration please refer to + # https://github.com/container-orchestrated-devices/container-device-interface#containerd-configuration cdi_spec_dirs = ["/etc/cdi", "/var/run/cdi"] # 'plugins."io.containerd.grpc.v1.cri".containerd' contains config related to containerd diff --git a/pkg/cri/config/config.go b/pkg/cri/config/config.go index be0a2f15e..d7ac9d46c 100644 --- a/pkg/cri/config/config.go +++ b/pkg/cri/config/config.go @@ -322,6 +322,8 @@ type PluginConfig struct { // https://github.com/container-orchestrated-devices/container-device-interface. EnableCDI bool `toml:"enable_cdi" json:"enableCDI"` // CDISpecDirs is the list of directories to scan for Container Device Interface Specifications + // For more details about CDI configuration please refer to + // https://github.com/container-orchestrated-devices/container-device-interface#containerd-configuration CDISpecDirs []string `toml:"cdi_spec_dirs" json:"cdiSpecDirs"` // ImagePullProgressTimeout is the maximum duration that there is no // image data read from image registry in the open connection. It will