File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,29 @@ func TestIsKnownSystemPriorityClass(t *testing.T) {
46
46
},
47
47
expected : false ,
48
48
},
49
+ {
50
+ name : "not a known system priority class" ,
51
+ pc : & v1.PriorityClass {
52
+ ObjectMeta : metav1.ObjectMeta {
53
+ Name : "unknown" ,
54
+ },
55
+ Value : scheduling .SystemCriticalPriority ,
56
+ Description : "Used for system critical pods that must run in the cluster, but can be moved to another node if necessary." ,
57
+ },
58
+ expected : false ,
59
+ },
60
+ {
61
+ name : "global default changed" ,
62
+ pc : & v1.PriorityClass {
63
+ ObjectMeta : metav1.ObjectMeta {
64
+ Name : scheduling .SystemClusterCritical ,
65
+ },
66
+ GlobalDefault : true ,
67
+ Value : scheduling .SystemCriticalPriority ,
68
+ Description : "Used for system critical pods that must run in the cluster, but can be moved to another node if necessary." ,
69
+ },
70
+ expected : false ,
71
+ },
49
72
}
50
73
51
74
for _ , test := range tests {
You can’t perform that action at this time.
0 commit comments