mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Add CDI devices to device plugin API
This change adds CDI device IDs to the ContainerAllocateResponse in the device plugin API. This allows a device plugin to specify CDI devices by their unique fully-qualified CDI device names using the related field in the CRI specification. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		@@ -673,6 +673,7 @@ func (cm *containerManagerImpl) GetResources(pod *v1.Pod, container *v1.Containe
 | 
			
		||||
	opts.Mounts = append(opts.Mounts, devOpts.Mounts...)
 | 
			
		||||
	opts.Envs = append(opts.Envs, devOpts.Envs...)
 | 
			
		||||
	opts.Annotations = append(opts.Annotations, devOpts.Annotations...)
 | 
			
		||||
	opts.CDIDevices = append(opts.CDIDevices, devOpts.CDIDevices...)
 | 
			
		||||
	return opts, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user