@@ -587,19 +587,19 @@ func TestVolumeClient(f *framework.Framework, config TestConfig, fsGroup *int64,
587
587
// InjectContent inserts index.html with given content into given volume. It does so by
588
588
// starting and auxiliary pod which writes the file there.
589
589
// The volume must be writable.
590
- func InjectContent (f * framework.Framework , client clientset. Interface , config TestConfig , fsGroup * int64 , fsType string , tests []Test ) {
590
+ func InjectContent (f * framework.Framework , config TestConfig , fsGroup * int64 , fsType string , tests []Test ) {
591
591
privileged := true
592
592
if framework .NodeOSDistroIs ("windows" ) {
593
593
privileged = false
594
594
}
595
- injectorPod , err := runVolumeTesterPod (client , config , "injector" , privileged , fsGroup , tests )
595
+ injectorPod , err := runVolumeTesterPod (f . ClientSet , config , "injector" , privileged , fsGroup , tests )
596
596
if err != nil {
597
597
framework .Failf ("Failed to create injector pod: %v" , err )
598
598
return
599
599
}
600
600
defer func () {
601
- e2epod .DeletePodOrFail (client , injectorPod .Namespace , injectorPod .Name )
602
- e2epod .WaitForPodToDisappear (client , injectorPod .Namespace , injectorPod .Name , labels .Everything (), framework .Poll , framework .PodDeleteTimeout )
601
+ e2epod .DeletePodOrFail (f . ClientSet , injectorPod .Namespace , injectorPod .Name )
602
+ e2epod .WaitForPodToDisappear (f . ClientSet , injectorPod .Namespace , injectorPod .Name , labels .Everything (), framework .Poll , framework .PodDeleteTimeout )
603
603
}()
604
604
605
605
ginkgo .By ("Writing text file contents in the container." )
0 commit comments