Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for nodeSummary (0.14 sec)

  1. pkg/kubelet/eviction/memory_threshold_notifier_test.go

    	"k8s.io/apimachinery/pkg/api/resource"
    	statsapi "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    	evictionapi "k8s.io/kubernetes/pkg/kubelet/eviction/api"
    )
    
    const testCgroupPath = "/sys/fs/cgroups/memory"
    
    func nodeSummary(available, workingSet, usage resource.Quantity, allocatable bool) *statsapi.Summary {
    	availableBytes := uint64(available.Value())
    	workingSetBytes := uint64(workingSet.Value())
    	usageBytes := uint64(usage.Value())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top