@@ -324,7 +324,7 @@ func toK8sPodInterruptible(t *testing.T) {
324324 },
325325 })
326326
327- p , _ , err := ToK8sPodSpec (ctx , x )
327+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
328328 assert .NoError (t , err )
329329 assert .Len (t , p .Tolerations , 2 )
330330 assert .Equal (t , "x/flyte" , p .Tolerations [1 ].Key )
@@ -391,7 +391,7 @@ func TestToK8sPod(t *testing.T) {
391391 },
392392 })
393393
394- p , _ , err := ToK8sPodSpec (ctx , x )
394+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
395395 assert .NoError (t , err )
396396 assert .Equal (t , len (p .Tolerations ), 1 )
397397 })
@@ -408,7 +408,7 @@ func TestToK8sPod(t *testing.T) {
408408 },
409409 })
410410
411- p , _ , err := ToK8sPodSpec (ctx , x )
411+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
412412 assert .NoError (t , err )
413413 assert .Equal (t , len (p .Tolerations ), 0 )
414414 assert .Equal (t , "some-acceptable-name" , p .Containers [0 ].Name )
@@ -435,7 +435,7 @@ func TestToK8sPod(t *testing.T) {
435435 DefaultMemoryRequest : resource .MustParse ("1024Mi" ),
436436 }))
437437
438- p , _ , err := ToK8sPodSpec (ctx , x )
438+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
439439 assert .NoError (t , err )
440440 assert .Equal (t , 1 , len (p .NodeSelector ))
441441 assert .Equal (t , "myScheduler" , p .SchedulerName )
@@ -452,7 +452,7 @@ func TestToK8sPod(t *testing.T) {
452452 }))
453453
454454 x := dummyExecContext (& v1.ResourceRequirements {})
455- p , _ , err := ToK8sPodSpec (ctx , x )
455+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
456456 assert .NoError (t , err )
457457 assert .NotNil (t , p .SecurityContext )
458458 assert .Equal (t , * p .SecurityContext .RunAsGroup , v )
@@ -464,7 +464,7 @@ func TestToK8sPod(t *testing.T) {
464464 EnableHostNetworkingPod : & enabled ,
465465 }))
466466 x := dummyExecContext (& v1.ResourceRequirements {})
467- p , _ , err := ToK8sPodSpec (ctx , x )
467+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
468468 assert .NoError (t , err )
469469 assert .True (t , p .HostNetwork )
470470 })
@@ -475,15 +475,15 @@ func TestToK8sPod(t *testing.T) {
475475 EnableHostNetworkingPod : & enabled ,
476476 }))
477477 x := dummyExecContext (& v1.ResourceRequirements {})
478- p , _ , err := ToK8sPodSpec (ctx , x )
478+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
479479 assert .NoError (t , err )
480480 assert .False (t , p .HostNetwork )
481481 })
482482
483483 t .Run ("skipSettingHostNetwork" , func (t * testing.T ) {
484484 assert .NoError (t , config .SetK8sPluginConfig (& config.K8sPluginConfig {}))
485485 x := dummyExecContext (& v1.ResourceRequirements {})
486- p , _ , err := ToK8sPodSpec (ctx , x )
486+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
487487 assert .NoError (t , err )
488488 assert .False (t , p .HostNetwork )
489489 })
@@ -517,7 +517,7 @@ func TestToK8sPod(t *testing.T) {
517517 }))
518518
519519 x := dummyExecContext (& v1.ResourceRequirements {})
520- p , _ , err := ToK8sPodSpec (ctx , x )
520+ p , _ , _ , err := ToK8sPodSpec (ctx , x )
521521 assert .NoError (t , err )
522522 assert .NotNil (t , p .DNSConfig )
523523 assert .Equal (t , []string {"8.8.8.8" , "8.8.4.4" }, p .DNSConfig .Nameservers )
0 commit comments