Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getPriorityValue (0.14 sec)

  1. cmd/kubelet/app/init_windows.go

    	"k8s.io/klog/v2"
    
    	"k8s.io/kubernetes/pkg/windows/service"
    )
    
    const (
    	serviceName = "kubelet"
    )
    
    // getPriorityValue returns the value associated with a Windows process priorityClass
    // Ref: https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/setpriority-method-in-class-win32-process
    func getPriorityValue(priorityClassName string) uint32 {
    	var priorityClassMap = map[string]uint32{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 01:54:34 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. cmd/kubelet/app/init_windows_test.go

    		{
    			description:           "Valid Priority Class",
    			priorityClassName:     "IDLE_PRIORITY_CLASS",
    			expectedPriorityValue: uint32(64),
    		},
    	}
    	for _, test := range testCases {
    		actualPriorityValue := getPriorityValue(test.priorityClassName)
    		if test.expectedPriorityValue != actualPriorityValue {
    			t.Fatalf("unexpected error for %s", test.description)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 02 19:48:59 UTC 2020
    - 1.2K bytes
    - Viewed (0)
Back to top