- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsCriticalPodBasedOnPriority (0.21 sec)
-
pkg/kubelet/types/pod_update.go
return *(preemptor.Spec.Priority) > *(preemptee.Spec.Priority) } return false } // IsCriticalPodBasedOnPriority checks if the given pod is a critical pod based on priority resolved from pod Spec. func IsCriticalPodBasedOnPriority(priority int32) bool { return priority >= scheduling.SystemCriticalPriority } // IsNodeCriticalPod checks if the given pod is a system-node-critical
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:12 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/kubelet/types/pod_update_test.go
priority: scheduling.HighestUserDefinablePriority, expected: false, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { actual := IsCriticalPodBasedOnPriority(test.priority) if actual != test.expected { t.Errorf("IsCriticalPodBased on priority should have returned %v for test %v but got %v", test.expected, test.name, actual) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 21 08:20:50 UTC 2023 - 10.4K bytes - Viewed (0)