Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UpdateAllocatedDevices (0.28 sec)

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

    	// and is consulted to make Topology aware resource alignments per Pod
    	GetPodTopologyHints(pod *v1.Pod) map[string][]topologymanager.TopologyHint
    
    	// UpdateAllocatedDevices frees any Devices that are bound to terminated pods.
    	UpdateAllocatedDevices()
    }
    
    // DeviceRunContainerOptions contains the combined container runtime settings to consume its allocated devices.
    type DeviceRunContainerOptions struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. pkg/kubelet/apis/podresources/server_v1alpha1_test.go

    			mockPodsProvider.EXPECT().GetPods().Return(tc.pods).AnyTimes()
    			mockDevicesProvider.EXPECT().GetDevices(string(podUID), containerName).Return(tc.devices).AnyTimes()
    			mockDevicesProvider.EXPECT().UpdateAllocatedDevices().Return().AnyTimes()
    
    			providers := PodResourcesProviders{
    				Pods:    mockPodsProvider,
    				Devices: mockDevicesProvider,
    			}
    			server := NewV1alpha1PodResourcesServer(providers)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. pkg/kubelet/apis/podresources/server_v1.go

    	metrics.PodResourcesEndpointRequestsListCount.WithLabelValues("v1").Inc()
    
    	pods := p.podsProvider.GetPods()
    	podResources := make([]*podresourcesv1.PodResources, len(pods))
    	p.devicesProvider.UpdateAllocatedDevices()
    
    	for i, pod := range pods {
    		pRes := podresourcesv1.PodResources{
    			Name:       pod.Name,
    			Namespace:  pod.Namespace,
    			Containers: make([]*podresourcesv1.ContainerResources, 0, len(pod.Spec.Containers)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 21 13:00:09 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top