Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getContainerInfoWithZeroCpuMem (0.24 sec)

  1. pkg/kubelet/stats/provider_test.go

    			TxBytes:  0,
    			TxErrors: 0,
    		}, {
    			Name:     "cbr0",
    			RxBytes:  0,
    			RxErrors: 0,
    			TxBytes:  0,
    			TxErrors: 0,
    		}},
    	}
    	return cinfo
    }
    
    func getContainerInfoWithZeroCpuMem(seed int, podName string, podNamespace string, containerName string) cadvisorapiv2.ContainerInfo {
    	cinfo := getTestContainerInfo(seed, podName, podNamespace, containerName)
    	cinfo.Stats[0].Memory.RSS = 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    		//ContainerInfo with no CPU/memory usage but has network usage for uncleaned cgroups, should not be filtered out
    		"/pod2-c222-zerocpumem-1": getContainerInfoWithZeroCpuMem(seedPastPod0Container0, pName2, namespace, cName222),
    	}
    	filteredInfos, allInfos := filterTerminatedContainerInfoAndAssembleByPodCgroupKey(infos)
    	assert.Len(t, filteredInfos, 5)
    	assert.Len(t, allInfos, 11)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top