Skip to content

Commit ab8444d

Browse files
committed
Remove argument "cs clientset.Interface" from testFlexVolume
cs is not used any more after previous change removed cs arg from TectVolumeClient. Functions down the call path get cs value from framework parameter.
1 parent 4f75ed2 commit ab8444d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/storage/flexvolume.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const (
4949

5050
// testFlexVolume tests that a client pod using a given flexvolume driver
5151
// successfully mounts it and runs
52-
func testFlexVolume(driver string, cs clientset.Interface, config volume.TestConfig, f *framework.Framework) {
52+
func testFlexVolume(driver string, config volume.TestConfig, f *framework.Framework) {
5353
tests := []volume.Test{
5454
{
5555
Volume: v1.VolumeSource{
@@ -190,7 +190,7 @@ var _ = utils.SIGDescribe("Flexvolumes", func() {
190190
ginkgo.By(fmt.Sprintf("installing flexvolume %s on node %s as %s", path.Join(driverDir, driver), node.Name, driverInstallAs))
191191
installFlex(cs, node, "k8s", driverInstallAs, path.Join(driverDir, driver))
192192

193-
testFlexVolume(driverInstallAs, cs, config, f)
193+
testFlexVolume(driverInstallAs, config, f)
194194

195195
ginkgo.By("waiting for flex client pod to terminate")
196196
if err := f.WaitForPodTerminated(config.Prefix+"-client", ""); !apierrs.IsNotFound(err) {
@@ -210,7 +210,7 @@ var _ = utils.SIGDescribe("Flexvolumes", func() {
210210
ginkgo.By(fmt.Sprintf("installing flexvolume %s on master as %s", path.Join(driverDir, driver), driverInstallAs))
211211
installFlex(cs, nil, "k8s", driverInstallAs, path.Join(driverDir, driver))
212212

213-
testFlexVolume(driverInstallAs, cs, config, f)
213+
testFlexVolume(driverInstallAs, config, f)
214214

215215
ginkgo.By("waiting for flex client pod to terminate")
216216
if err := f.WaitForPodTerminated(config.Prefix+"-client", ""); !apierrs.IsNotFound(err) {

0 commit comments

Comments
 (0)