Skip to content

Commit a83449c

Browse files
authored
Merge pull request containerd#9621 from bart0sh/PR011-enable-CDI-by-default
config: enable CDI by default
2 parents 0736233 + c8e8a09 commit a83449c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/cri/config.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,13 @@ version = 2
236236
# enable_cdi enables support of the Container Device Interface (CDI)
237237
# For more details about CDI and the syntax of CDI Spec files please refer to
238238
# https://github.com/container-orchestrated-devices/container-device-interface.
239-
enable_cdi = false
239+
# TODO: Deprecate this option when either Dynamic Resource Allocation(DRA)
240+
# or CDI support for the Device Plugins are graduated to GA.
241+
# `Dynamic Resource Allocation` KEP:
242+
# https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/3063-dynamic-resource-allocation
243+
# `Add CDI devices to device plugin API` KEP:
244+
# https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/4009-add-cdi-devices-to-device-plugin-api
245+
enable_cdi = true
240246

241247
# cdi_spec_dirs is the list of directories to scan for CDI spec files
242248
# For more details about CDI configuration please refer to

pkg/cri/config/config_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func DefaultConfig() PluginConfig {
105105
TolerateMissingHugetlbController: true,
106106
DisableHugetlbController: true,
107107
IgnoreImageDefinedVolumes: false,
108-
EnableCDI: false,
108+
EnableCDI: true,
109109
CDISpecDirs: []string{"/etc/cdi", "/var/run/cdi"},
110110
DrainExecSyncIOTimeout: "0s",
111111
EnableUnprivilegedPorts: true,

0 commit comments

Comments
 (0)