Merge pull request #7408 from bart0sh/PR004-refer-CDI-configuration-doc

reference CDI configuration details
This commit is contained in:
Derek McGowan 2022-09-21 21:57:57 -07:00 committed by GitHub
commit 97b8b152cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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