Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetDeviceRunContainerOptions (0.33 sec)

  1. pkg/kubelet/cm/devicemanager/manager_test.go

    	as.Nil(err)
    	err = testManager.Allocate(pod2, &pod2.Spec.Containers[0])
    	as.Nil(err)
    
    	// when pod is in activePods, GetDeviceRunContainerOptions should return
    	runContainerOpts, err := testManager.GetDeviceRunContainerOptions(pod1, &pod1.Spec.Containers[0])
    	as.Nil(err)
    	as.Equal(len(runContainerOpts.Devices), 3)
    	as.Equal(len(runContainerOpts.Mounts), 2)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/container_manager_linux.go

    	}
    	// Allocate should already be called during predicateAdmitHandler.Admit(),
    	// just try to fetch device runtime information from cached state here
    	devOpts, err := cm.deviceManager.GetDeviceRunContainerOptions(pod, container)
    	if err != nil {
    		return nil, err
    	} else if devOpts == nil {
    		return opts, nil
    	}
    	opts.Devices = append(opts.Devices, devOpts.Devices...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
Back to top