- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for GetCPUs (0.13 sec)
-
pkg/kubelet/apis/podresources/testing/provider_mock.go
} // GetCPUs mocks base method. func (m *MockCPUsProvider) GetCPUs(podUID, containerName string) []int64 { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCPUs", podUID, containerName) ret0, _ := ret[0].([]int64) return ret0 } // GetCPUs indicates an expected call of GetCPUs. func (mr *MockCPUsProviderMockRecorder) GetCPUs(podUID, containerName any) *gomock.Call {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 10.1K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/server_v1_test.go
mockPodsProvider.EXPECT().GetPods().Return(tc.pods).AnyTimes() mockDevicesProvider.EXPECT().GetDevices(string(podUID), containerName).Return(tc.devices).AnyTimes() mockCPUsProvider.EXPECT().GetCPUs(string(podUID), containerName).Return(tc.cpus).AnyTimes() mockMemoryProvider.EXPECT().GetMemory(string(podUID), containerName).Return(tc.memory).AnyTimes()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/types.go
GetPodByName(namespace, name string) (*v1.Pod, bool) } // CPUsProvider knows how to provide the cpus used by the given container type CPUsProvider interface { // GetCPUs returns information about the cpus assigned to pods and containers GetCPUs(podUID, containerName string) []int64 // GetAllocatableCPUs returns the allocatable (not allocated) CPUs GetAllocatableCPUs() []int64 } type MemoryProvider interface {
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/fake_container_manager.go
cm.Lock() defer cm.Unlock() cm.CalledFunctions = append(cm.CalledFunctions, "UpdateAllocatedDevices") return } func (cm *FakeContainerManager) GetCPUs(_, _ string) []int64 { cm.Lock() defer cm.Unlock() cm.CalledFunctions = append(cm.CalledFunctions, "GetCPUs") return nil } func (cm *FakeContainerManager) GetAllocatableCPUs() []int64 { cm.Lock() defer cm.Unlock() return nil }
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/cm/container_manager_stub.go
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
containerResources := &podresourcesv1.ContainerResources{ Name: container.Name, Devices: p.devicesProvider.GetDevices(string(pod.UID), container.Name), CpuIds: p.cpusProvider.GetCPUs(string(pod.UID), container.Name), Memory: p.memoryProvider.GetMemory(string(pod.UID), container.Name), } if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.KubeletPodResourcesDynamicResources) {
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
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) -
cmd/peer-rest-client.go
resp, err := serverInfoRPC.Call(ctx, client.gridConn(), grid.NewMSSWith(map[string]string{peerRESTMetrics: strconv.FormatBool(metrics)})) return resp.ValueOrZero(), err } // GetCPUs - fetch CPU information for a remote node. func (client *peerRESTClient) GetCPUs(ctx context.Context) (info madmin.CPUs, err error) { resp, err := getCPUsHandler.Call(ctx, client.gridConn(), grid.NewMSS()) return resp.ValueOrZero(), err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 26.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
// NUMA nodes/sockets/cores/cpus have the same number of available CPUs, they // are sorted in ascending order by their id. func (a *cpuAccumulator) sort(ids []int, getCPUs func(ids ...int) cpuset.CPUSet) { sort.Slice(ids, func(i, j int) bool { iCPUs := getCPUs(ids[i]) jCPUs := getCPUs(ids[j]) if iCPUs.Size() < jCPUs.Size() { return true } if iCPUs.Size() > jCPUs.Size() { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0) -
cmd/notification.go
if nErr.Err != nil { peersLogOnceIf(logger.SetReqInfo(ctx, reqInfo), nErr.Err, nErr.Host.String()) } } } // GetCPUs - Get all CPU information. func (sys *NotificationSys) GetCPUs(ctx context.Context) []madmin.CPUs { reply := make([]madmin.CPUs, len(sys.peerClients)) g := errgroup.WithNErrs(len(sys.peerClients)) for index, client := range sys.peerClients {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 44.9K bytes - Viewed (0)