1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Make GPU requested pods not evictable by descheduler

This commit is contained in:
ravisantoshgudimetla
2017-12-05 03:34:10 -05:00
parent 445ae92caa
commit 6f873d5e69
3 changed files with 33 additions and 4 deletions

View File

@@ -24,9 +24,7 @@ import (
"k8s.io/kubernetes/pkg/api/v1"
)
// TODO:@ravisantoshgudimetla. As of now building some test pods here. This needs to
// move to utils after refactor.
// buildTestPod creates a test pod with given parameters.
// BuildTestPod creates a test pod with given parameters.
func BuildTestPod(name string, cpu int64, memory int64, nodeName string) *v1.Pod {
pod := &v1.Pod{
ObjectMeta: metav1.ObjectMeta{