- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CapacityFromMachineInfo (0.22 sec)
-
pkg/kubelet/cadvisor/util.go
// symlink to /run, so the user can specify either path. CrioSocketSuffix = "run/crio/crio.sock" ) // CapacityFromMachineInfo returns the capacity of the resources from the machine info. func CapacityFromMachineInfo(info *cadvisorapi.MachineInfo) v1.ResourceList { c := v1.ResourceList{ v1.ResourceCPU: *resource.NewMilliQuantity( int64(info.NumCores*1000), resource.DecimalSI),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 04 05:08:20 UTC 2023 - 2.8K bytes - Viewed (0) -
pkg/kubelet/cadvisor/util_test.go
v1.ResourceMemory: *resource.NewQuantity(int64(2048), resource.BinarySI), "hugepages-5Ki": *resource.NewQuantity(int64(51200), resource.BinarySI), } actual := CapacityFromMachineInfo(machineInfo) if !reflect.DeepEqual(actual, expected) { t.Errorf("when set hugepages true, got resource list %v, want %v", actual, expected) } } func TestCrioSocket(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 04 05:08:20 UTC 2023 - 1.7K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_windows.go
machineInfo, err := cadvisorInterface.MachineInfo() if err != nil { return nil, err } capacity := cadvisor.CapacityFromMachineInfo(machineInfo) cm := &containerManagerImpl{ capacity: capacity, nodeConfig: nodeConfig, cadvisorInterface: cadvisorInterface, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 11:25:36 UTC 2023 - 8.7K bytes - Viewed (0)