- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for MachineInfo (0.18 sec)
-
pkg/kubelet/winstats/winstats_test.go
assert.Equal(t, actualRootInfos["/"].Stats[0].Memory, infos["/"].Stats[0].Memory) } func TestWinMachineInfo(t *testing.T) { c := getClient(t) machineInfo, err := c.WinMachineInfo() assert.NoError(t, err) assert.Equal(t, machineInfo, &cadvisorapi.MachineInfo{ NumCores: 4, MemoryCapacity: 1.6e+10, MachineID: "somehostname", SystemUUID: "E6C8AC43-582B-3575-4E1F-6DA170888906"}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 12:08:15 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/kubelet/cadvisor/testing/cadvisor_mock.go
} // MachineInfo mocks base method. func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "MachineInfo") ret0, _ := ret[0].(*v1.MachineInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // MachineInfo indicates an expected call of MachineInfo. func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call { mr.mock.ctrl.T.Helper()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 8.4K bytes - Viewed (0) -
pkg/kubelet/winstats/perfcounter_nodestats_test.go
}, } machineInfo, err := p.getMachineInfo() assert.NoError(t, err) assert.Equal(t, uint64(100), machineInfo.MemoryCapacity) hostname, _ := os.Hostname() assert.Equal(t, hostname, machineInfo.MachineID) // Check if it's an UUID. _, err = uuid.Parse(machineInfo.SystemUUID) assert.NoError(t, err) id, err := strconv.Atoi(machineInfo.BootID) assert.NoError(t, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 5.7K bytes - Viewed (0) -
pkg/kubelet/cadvisor/testing/cadvisor_fake.go
return map[string]*cadvisorapi.ContainerInfo{}, nil } // MachineInfo is a fake implementation of Interface.MachineInfo. func (c *Fake) MachineInfo() (*cadvisorapi.MachineInfo, error) { // Simulate a machine with 1 core and 3.75GB of memory. // We set it to non-zero values to make non-zero-capacity machines in Kubemark. return &cadvisorapi.MachineInfo{ NumCores: fakeNumCores,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 22:07:20 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/kubelet/cadvisor/util_test.go
"github.com/stretchr/testify/assert" "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" ) func TestCapacityFromMachineInfoWithHugePagesEnable(t *testing.T) { machineInfo := &info.MachineInfo{ NumCores: 2, MemoryCapacity: 2048, HugePages: []info.HugePagesInfo{ { PageSize: 5, NumPages: 10, }, }, } expected := v1.ResourceList{
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/cadvisor/types.go
GetRequestedContainersInfo(containerName string, options cadvisorapiv2.RequestOptions) (map[string]*cadvisorapi.ContainerInfo, error) MachineInfo() (*cadvisorapi.MachineInfo, error) VersionInfo() (*cadvisorapi.VersionInfo, error) // Returns usage information about the filesystem holding container images. ImagesFsInfo() (cadvisorapiv2.FsInfo, error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 22:07:20 UTC 2023 - 2.1K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/fake_kuberuntime_manager.go
func (f *fakePodPullingTimeRecorder) RecordImageFinishedPulling(podUID types.UID) {} func newFakeKubeRuntimeManager(runtimeService internalapi.RuntimeService, imageService internalapi.ImageManagerService, machineInfo *cadvisorapi.MachineInfo, osInterface kubecontainer.OSInterface, runtimeHelper kubecontainer.RuntimeHelper, keyring credentialprovider.DockerKeyring, tracer trace.Tracer) (*kubeGenericRuntimeManager, error) { ctx := context.Background()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 17:55:59 UTC 2024 - 5.1K bytes - Viewed (0) -
pkg/kubelet/cadvisor/cadvisor_windows.go
func (cu *cadvisorClient) GetRequestedContainersInfo(containerName string, options cadvisorapiv2.RequestOptions) (map[string]*cadvisorapi.ContainerInfo, error) { return nil, nil } func (cu *cadvisorClient) MachineInfo() (*cadvisorapi.MachineInfo, error) { return cu.winStatsClient.WinMachineInfo() } func (cu *cadvisorClient) VersionInfo() (*cadvisorapi.VersionInfo, error) { return cu.winStatsClient.WinVersionInfo() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 22:07:20 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/topology/topology.go
} // Discover returns CPUTopology based on cadvisor node info func Discover(machineInfo *cadvisorapi.MachineInfo) (*CPUTopology, error) { if machineInfo.NumCores == 0 { return nil, fmt.Errorf("could not detect number of cpus") } CPUDetails := CPUDetails{} numPhysicalCores := 0 for _, node := range machineInfo.Topology { numPhysicalCores += len(node.Cores) for _, core := range node.Cores {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/kubelet/cadvisor/cadvisor_unsupported.go
return nil, errUnsupported } func (cu *cadvisorUnsupported) MachineInfo() (*cadvisorapi.MachineInfo, error) { return nil, errUnsupported } func (cu *cadvisorUnsupported) VersionInfo() (*cadvisorapi.VersionInfo, error) { return nil, errUnsupported }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 22:07:20 UTC 2023 - 2.3K bytes - Viewed (0)