@@ -556,7 +556,6 @@ func (c *criService) buildContainerSpec(
556
556
id ,
557
557
sandboxID ,
558
558
sandboxPid ,
559
- netNSPath ,
560
559
containerName ,
561
560
imageName ,
562
561
config ,
@@ -568,9 +567,7 @@ func (c *criService) buildContainerSpec(
568
567
)
569
568
case isWindows :
570
569
specOpts , err = c .buildWindowsSpec (
571
- id ,
572
570
sandboxID ,
573
- sandboxPid ,
574
571
netNSPath ,
575
572
containerName ,
576
573
imageName ,
@@ -579,11 +576,9 @@ func (c *criService) buildContainerSpec(
579
576
imageConfig ,
580
577
extraMounts ,
581
578
ociRuntime ,
582
- runtimeHandler ,
583
579
)
584
580
case isDarwin :
585
581
specOpts , err = c .buildDarwinSpec (
586
- id ,
587
582
sandboxID ,
588
583
containerName ,
589
584
imageName ,
@@ -592,7 +587,6 @@ func (c *criService) buildContainerSpec(
592
587
imageConfig ,
593
588
extraMounts ,
594
589
ociRuntime ,
595
- runtimeHandler ,
596
590
)
597
591
default :
598
592
return nil , fmt .Errorf ("unsupported spec platform: %s" , platform .OS )
@@ -609,7 +603,6 @@ func (c *criService) buildLinuxSpec(
609
603
id string ,
610
604
sandboxID string ,
611
605
sandboxPid uint32 ,
612
- netNSPath string ,
613
606
containerName string ,
614
607
imageName string ,
615
608
config * runtime.ContainerConfig ,
@@ -839,9 +832,7 @@ func (c *criService) buildLinuxSpec(
839
832
}
840
833
841
834
func (c * criService ) buildWindowsSpec (
842
- id string ,
843
835
sandboxID string ,
844
- sandboxPid uint32 ,
845
836
netNSPath string ,
846
837
containerName string ,
847
838
imageName string ,
@@ -850,7 +841,6 @@ func (c *criService) buildWindowsSpec(
850
841
imageConfig * imagespec.ImageConfig ,
851
842
extraMounts []* runtime.Mount ,
852
843
ociRuntime criconfig.Runtime ,
853
- runtimeHandler * runtime.RuntimeHandler ,
854
844
) (_ []oci.SpecOpts , retErr error ) {
855
845
var specOpts []oci.SpecOpts
856
846
specOpts = append (specOpts , customopts .WithProcessCommandLineOrArgsForWindows (config , imageConfig ))
@@ -936,7 +926,6 @@ func (c *criService) buildWindowsSpec(
936
926
}
937
927
938
928
func (c * criService ) buildDarwinSpec (
939
- id string ,
940
929
sandboxID string ,
941
930
containerName string ,
942
931
imageName string ,
@@ -945,7 +934,6 @@ func (c *criService) buildDarwinSpec(
945
934
imageConfig * imagespec.ImageConfig ,
946
935
extraMounts []* runtime.Mount ,
947
936
ociRuntime criconfig.Runtime ,
948
- runtimeHandler * runtime.RuntimeHandler ,
949
937
) (_ []oci.SpecOpts , retErr error ) {
950
938
specOpts := []oci.SpecOpts {
951
939
customopts .WithProcessArgs (config , imageConfig ),
0 commit comments