@@ -105,7 +105,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
105
105
name : "BU pod: pessimistic cache overallocation not impactful, pod to be scheduled" ,
106
106
podDescs : []podDesc {
107
107
{
108
- podName : "nrt-bu-pod -1000" ,
108
+ podName : "nrt-bu-overalloc -1000" ,
109
109
isGuaranteed : false ,
110
110
resourcesMap : map [string ]string {
111
111
string (corev1 .ResourceCPU ): "16" ,
@@ -114,7 +114,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
114
114
expectedNode : anyNode ,
115
115
},
116
116
{
117
- podName : "nrt-bu-pod -2000" ,
117
+ podName : "nrt-bu-overalloc -2000" ,
118
118
isGuaranteed : false ,
119
119
resourcesMap : map [string ]string {
120
120
string (corev1 .ResourceCPU ): "16" ,
@@ -172,15 +172,15 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
172
172
name : "BE pod: with devices, pessimistic cache overallocation prevents pod to be scheduled" ,
173
173
podDescs : []podDesc {
174
174
{
175
- podName : "nrt-be-pod -3000" ,
175
+ podName : "nrt-be-overalloc -3000" ,
176
176
isGuaranteed : true , // aka set resourcesMap in limits
177
177
resourcesMap : map [string ]string {
178
178
nicResourceName : "2" ,
179
179
},
180
180
expectedNode : "fake-node-cache-2" ,
181
181
},
182
182
{
183
- podName : "nrt-be-pod -4000" ,
183
+ podName : "nrt-be-overalloc -4000" ,
184
184
isGuaranteed : true , // aka set resourcesMap in limits
185
185
resourcesMap : map [string ]string {
186
186
nicResourceName : "2" ,
@@ -194,7 +194,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
194
194
name : "GU pod: pessimistic cache overallocation prevents pod to be scheduled" ,
195
195
podDescs : []podDesc {
196
196
{
197
- podName : "nrt-pod -1000" ,
197
+ podName : "nrt-gu-overalloc -1000" ,
198
198
isGuaranteed : true ,
199
199
resourcesMap : map [string ]string {
200
200
string (corev1 .ResourceCPU ): "16" ,
@@ -203,7 +203,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
203
203
expectedNode : "fake-node-cache-1" ,
204
204
},
205
205
{
206
- podName : "nrt-pod -2000" ,
206
+ podName : "nrt-gu-overalloc -2000" ,
207
207
isGuaranteed : true ,
208
208
resourcesMap : map [string ]string {
209
209
string (corev1 .ResourceCPU ): "16" ,
@@ -261,7 +261,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
261
261
name : "GU pod: pessimistic cache overallocation ignores deletes prevents pod to be scheduled" ,
262
262
podDescs : []podDesc {
263
263
{
264
- podName : "nrt-pod -3000" ,
264
+ podName : "nrt-gu-overalloc-del -3000" ,
265
265
isGuaranteed : true ,
266
266
resourcesMap : map [string ]string {
267
267
string (corev1 .ResourceCPU ): "16" ,
@@ -270,11 +270,11 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
270
270
expectedNode : "fake-node-cache-1" ,
271
271
},
272
272
{
273
- podName : "nrt-pod -3000" ,
273
+ podName : "nrt-gu-overalloc-del -3000" ,
274
274
isDelete : true ,
275
275
},
276
276
{
277
- podName : "nrt-pod -4000" ,
277
+ podName : "nrt-gu-overalloc-del -4000" ,
278
278
isGuaranteed : true ,
279
279
resourcesMap : map [string ]string {
280
280
string (corev1 .ResourceCPU ): "16" ,
@@ -332,7 +332,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
332
332
name : "GU pod: DiscardReservedNodes: allows scheduling on both Zones" ,
333
333
podDescs : []podDesc {
334
334
{
335
- podName : "nrt-pod -1000" ,
335
+ podName : "nrt-gu-discardresv -1000" ,
336
336
isGuaranteed : true ,
337
337
resourcesMap : map [string ]string {
338
338
string (corev1 .ResourceCPU ): "16" ,
@@ -342,7 +342,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
342
342
expectedNode : "fake-node-cache-1" ,
343
343
},
344
344
{
345
- podName : "nrt-pod -2000" ,
345
+ podName : "nrt-gu-discardresv -2000" ,
346
346
isGuaranteed : true ,
347
347
resourcesMap : map [string ]string {
348
348
string (corev1 .ResourceCPU ): "16" ,
@@ -401,7 +401,7 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
401
401
name : "GU pod: DiscardReservedNodes: new pod is successfully scheduled on the node, after deleting pod consuming most resources" ,
402
402
podDescs : []podDesc {
403
403
{
404
- podName : "nrt-pod -3000" ,
404
+ podName : "nrt-gu-discardresv-ok -3000" ,
405
405
isGuaranteed : true ,
406
406
resourcesMap : map [string ]string {
407
407
string (corev1 .ResourceCPU ): "30" ,
@@ -411,12 +411,12 @@ func TestTopologyCachePluginWithoutUpdates(t *testing.T) {
411
411
expectedNode : "fake-node-cache-1" ,
412
412
},
413
413
{
414
- podName : "nrt-pod -3000" ,
414
+ podName : "nrt-gu-discardresv-ok -3000" ,
415
415
isDelete : true ,
416
416
schedulerName : "discardReserved" ,
417
417
},
418
418
{
419
- podName : "nrt-pod -4000" ,
419
+ podName : "nrt-gu-discardresv-ok -4000" ,
420
420
isGuaranteed : true ,
421
421
resourcesMap : map [string ]string {
422
422
string (corev1 .ResourceCPU ): "16" ,
0 commit comments