Fix to use kubectl create not kubectl apply in the e2e

Signed-off-by: Woohyung Han <techhanx@gmail.com>
This commit is contained in:
Woohyung Han 2019-12-11 17:48:36 +09:00 committed by mergify[bot]
parent 2c9d711463
commit 5c96ab1d0e
2 changed files with 10 additions and 4 deletions

View File

@ -28,12 +28,15 @@ func updateCephfsDirPath(c clientset.Interface) {
} }
func deployCephfsPlugin() { func deployCephfsPlugin() {
// delete objects deployed by rook
framework.RunKubectlOrDie("delete", "--ignore-not-found=true", "-f", cephfsDirPath+cephfsProvisionerRBAC)
framework.RunKubectlOrDie("delete", "--ignore-not-found=true", "-f", cephfsDirPath+cephfsNodePluginRBAC)
// deploy provisioner // deploy provisioner
framework.RunKubectlOrDie("create", "-f", cephfsDirPath+cephfsProvisioner) framework.RunKubectlOrDie("create", "-f", cephfsDirPath+cephfsProvisioner)
framework.RunKubectlOrDie("apply", "-f", cephfsDirPath+cephfsProvisionerRBAC) framework.RunKubectlOrDie("create", "-f", cephfsDirPath+cephfsProvisionerRBAC)
// deploy nodeplugin // deploy nodeplugin
framework.RunKubectlOrDie("create", "-f", cephfsDirPath+cephfsNodePlugin) framework.RunKubectlOrDie("create", "-f", cephfsDirPath+cephfsNodePlugin)
framework.RunKubectlOrDie("apply", "-f", cephfsDirPath+cephfsNodePluginRBAC) framework.RunKubectlOrDie("create", "-f", cephfsDirPath+cephfsNodePluginRBAC)
} }
func deleteCephfsPlugin() { func deleteCephfsPlugin() {

View File

@ -30,12 +30,15 @@ func updaterbdDirPath(c clientset.Interface) {
} }
func deployRBDPlugin() { func deployRBDPlugin() {
// delete objects deployed by rook
framework.RunKubectlOrDie("delete", "--ignore-not-found=true", "-f", rbdDirPath+rbdProvisionerRBAC)
framework.RunKubectlOrDie("delete", "--ignore-not-found=true", "-f", rbdDirPath+rbdNodePluginRBAC)
// deploy provisioner // deploy provisioner
framework.RunKubectlOrDie("create", "-f", rbdDirPath+rbdProvisioner) framework.RunKubectlOrDie("create", "-f", rbdDirPath+rbdProvisioner)
framework.RunKubectlOrDie("apply", "-f", rbdDirPath+rbdProvisionerRBAC) framework.RunKubectlOrDie("create", "-f", rbdDirPath+rbdProvisionerRBAC)
// deploy nodeplugin // deploy nodeplugin
framework.RunKubectlOrDie("create", "-f", rbdDirPath+rbdNodePlugin) framework.RunKubectlOrDie("create", "-f", rbdDirPath+rbdNodePlugin)
framework.RunKubectlOrDie("apply", "-f", rbdDirPath+rbdNodePluginRBAC) framework.RunKubectlOrDie("create", "-f", rbdDirPath+rbdNodePluginRBAC)
} }
func deleteRBDPlugin() { func deleteRBDPlugin() {