- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for UpdateAllocatedDevices (0.18 sec)
-
pkg/kubelet/apis/podresources/types.go
) // DevicesProvider knows how to provide the devices used by the given container type DevicesProvider interface { // UpdateAllocatedDevices frees any Devices that are bound to terminated pods. UpdateAllocatedDevices() // GetDevices returns information about the devices assigned to pods and containers GetDevices(podUID, containerName string) []*podresourcesapi.ContainerDevices
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 17:33:04 UTC 2023 - 2.6K bytes - Viewed (0) -
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) -
pkg/kubelet/cm/fake_container_manager.go
return topologymanager.NewFakeManager() } func (cm *FakeContainerManager) UpdateAllocatedDevices() { cm.Lock() defer cm.Unlock() cm.CalledFunctions = append(cm.CalledFunctions, "UpdateAllocatedDevices") return } func (cm *FakeContainerManager) GetCPUs(_, _ string) []int64 { cm.Lock() defer cm.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 17:33:04 UTC 2023 - 7.4K bytes - Viewed (0) -
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) -
pkg/kubelet/apis/podresources/server_v1alpha1.go
metrics.PodResourcesEndpointRequestsTotalCount.WithLabelValues("v1alpha1").Inc() pods := p.podsProvider.GetPods() podResources := make([]*v1alpha1.PodResources, len(pods)) p.devicesProvider.UpdateAllocatedDevices() for i, pod := range pods { pRes := v1alpha1.PodResources{ Name: pod.Name, Namespace: pod.Namespace, Containers: make([]*v1alpha1.ContainerResources, len(pod.Spec.Containers)), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 17:33:01 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_stub.go
} func (cm *containerManagerStub) GetAllocateResourcesPodAdmitHandler() lifecycle.PodAdmitHandler { return topologymanager.NewFakeManager() } func (cm *containerManagerStub) UpdateAllocatedDevices() { return } func (cm *containerManagerStub) GetCPUs(_, _ string) []int64 { return nil } func (cm *containerManagerStub) GetAllocatableCPUs() []int64 { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 15 02:26:59 UTC 2023 - 5.9K bytes - Viewed (0) -
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) -
pkg/kubelet/cm/container_manager_windows.go
} func (cm *containerManagerImpl) GetAllocateResourcesPodAdmitHandler() lifecycle.PodAdmitHandler { return &noopWindowsResourceAllocator{} } func (cm *containerManagerImpl) UpdateAllocatedDevices() { return } func (cm *containerManagerImpl) GetCPUs(_, _ string) []int64 { return nil } func (cm *containerManagerImpl) GetAllocatableCPUs() []int64 { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 11:25:36 UTC 2023 - 8.7K bytes - Viewed (0)