diff --git a/e2e/cephfs.go b/e2e/cephfs.go index d87cf997b..dbb82a91a 100644 --- a/e2e/cephfs.go +++ b/e2e/cephfs.go @@ -68,7 +68,7 @@ var _ = Describe("cephfs", func() { AfterEach(func() { deleteCephfsPlugin() - deleteConfiMap(cephfsDirPath) + deleteConfigMap(cephfsDirPath) deleteResource(cephfsExamplePath + "secret.yaml") deleteResource(cephfsExamplePath + "storageclass.yaml") deleteFileSystem() diff --git a/e2e/rbd.go b/e2e/rbd.go index fcc29a13f..706062ffb 100644 --- a/e2e/rbd.go +++ b/e2e/rbd.go @@ -72,7 +72,7 @@ var _ = Describe("RBD", func() { AfterEach(func() { deleteRBDPlugin() - deleteConfiMap(rbdDirPath) + deleteConfigMap(rbdDirPath) deleteRBDPool() deleteResource(rbdExamplePath + "secret.yaml") deleteResource(rbdExamplePath + "storageclass.yaml") diff --git a/e2e/utils.go b/e2e/utils.go index 6b4fc8c07..cb94aefb5 100644 --- a/e2e/utils.go +++ b/e2e/utils.go @@ -262,7 +262,7 @@ func createRBDStorageClass(c kubernetes.Interface, f *framework.Framework, param // Expect(err).Should(BeNil()) // } -func deleteConfiMap(pluginPath string) { +func deleteConfigMap(pluginPath string) { path := pluginPath + configMap _, err := framework.RunKubectl("delete", "-f", path) if err != nil {