Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetPreferredAllocation (0.36 sec)

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

    	defer e.mutex.Unlock()
    	e.stopTime = t
    }
    
    // getPreferredAllocation issues GetPreferredAllocation gRPC call to the device plugin.
    func (e *endpointImpl) getPreferredAllocation(available, mustInclude []string, size int) (*pluginapi.PreferredAllocationResponse, error) {
    	if e.isStopped() {
    		return nil, fmt.Errorf(errEndpointStopped, e)
    	}
    	return e.api.GetPreferredAllocation(context.Background(), &pluginapi.PreferredAllocationRequest{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 11:05:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/cm/devicemanager/endpoint_test.go

    	})
    
    	go e.client.Run()
    	// Wait for the callback to be issued.
    	select {
    	case <-callbackChan:
    		break
    	case <-time.After(time.Second):
    		t.FailNow()
    	}
    
    	respOut, err := e.getPreferredAllocation([]string{}, []string{}, -1)
    	require.NoError(t, err)
    	require.Equal(t, resp, respOut)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 16:05:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. CHANGELOG/CHANGELOG-1.19.md

    - Added --privileged flag to kubectl run ([#90569](https://github.com/kubernetes/kubernetes/pull/90569), [@brianpursley](https://github.com/brianpursley)) [SIG CLI]
    - Added a new `GetPreferredAllocation()` call to the `v1beta1` device plugin API. ([#92665](https://github.com/kubernetes/kubernetes/pull/92665), [@klueska](https://github.com/klueska)) [SIG Node and Testing]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 05 05:42:32 UTC 2022
    - 489.7K bytes
    - Viewed (0)
Back to top