Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetPreferredAllocation (0.19 sec)

  1. pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go

    func (m *Stub) Update(devs []*pluginapi.Device) {
    	m.update <- devs
    }
    
    // GetPreferredAllocation gets the preferred allocation from a set of available devices
    func (m *Stub) GetPreferredAllocation(ctx context.Context, r *pluginapi.PreferredAllocationRequest) (*pluginapi.PreferredAllocationResponse, error) {
    	klog.InfoS("GetPreferredAllocation", "request", r)
    
    	devs := make(map[string]pluginapi.Device)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 11:19:10 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager.go

    		klog.V(4).InfoS("Plugin options indicate to skip GetPreferredAllocation for resource", "resourceName", resource)
    		return nil, nil
    	}
    
    	m.mutex.Unlock()
    	klog.V(4).InfoS("Issuing a GetPreferredAllocation call for container", "containerName", contName, "podUID", podUID)
    	resp, err := eI.e.getPreferredAllocation(available.UnsortedList(), mustInclude.UnsortedList(), size)
    	m.mutex.Lock()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/devicemanager/manager_test.go

    }
    
    func (m *MockEndpoint) preStartContainer(devs []string) (*pluginapi.PreStartContainerResponse, error) {
    	m.initChan <- devs
    	return &pluginapi.PreStartContainerResponse{}, nil
    }
    
    func (m *MockEndpoint) getPreferredAllocation(available, mustInclude []string, size int) (*pluginapi.PreferredAllocationResponse, error) {
    	if m.getPreferredAllocationFunc != nil {
    		return m.getPreferredAllocationFunc(available, mustInclude, size)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
Back to top