Merge pull request #952 from elezar/add-disable-imex-channels-feature

Add ignore-imex-channel-requests feature flag.
This commit is contained in:
Evan Lezar
2025-03-06 10:49:47 +02:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -198,6 +198,10 @@ func getMigDevices(image image.CUDA, envvar string) *string {
}
func (hookConfig *hookConfig) getImexChannels(image image.CUDA, privileged bool) []string {
if hookConfig.Features.IgnoreImexChannelRequests.IsEnabled() {
return nil
}
// If enabled, try and get the device list from volume mounts first
if hookConfig.AcceptDeviceListAsVolumeMounts {
devices := image.ImexChannelsFromMounts()