mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
Provide option to skip ceph-csi plugin deployment
To test helm charts in CI we need to skip the ceph-csi deployment in E2E, This PR provides an option in E2E to enable/disable cephcsi deployment. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
0f6bceb662
commit
59fe8c1f2f
@ -71,7 +71,9 @@ var _ = Describe("cephfs", func() {
|
||||
BeforeEach(func() {
|
||||
c = f.ClientSet
|
||||
createConfigMap(cephfsDirPath, f.ClientSet, f)
|
||||
deployCephfsPlugin()
|
||||
if deployCephFS {
|
||||
deployCephfsPlugin()
|
||||
}
|
||||
createCephfsSecret(f.ClientSet, f)
|
||||
})
|
||||
|
||||
@ -82,7 +84,9 @@ var _ = Describe("cephfs", func() {
|
||||
// log node plugin
|
||||
logsCSIPods("app=csi-cephfsplugin", c)
|
||||
}
|
||||
deleteCephfsPlugin()
|
||||
if deployCephFS {
|
||||
deleteCephfsPlugin()
|
||||
}
|
||||
deleteConfigMap(cephfsDirPath)
|
||||
deleteResource(cephfsExamplePath + "secret.yaml")
|
||||
deleteResource(cephfsExamplePath + "storageclass.yaml")
|
||||
|
@ -16,12 +16,16 @@ import (
|
||||
|
||||
var (
|
||||
deployTimeout int
|
||||
deployCephFS bool
|
||||
deployRBD bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
log.SetOutput(GinkgoWriter)
|
||||
|
||||
flag.IntVar(&deployTimeout, "deploy-timeout", 10, "timeout to wait for created kubernetes resources")
|
||||
flag.BoolVar(&deployCephFS, "deploy-cephfs", true, "deploy cephfs csi driver")
|
||||
flag.BoolVar(&deployRBD, "deploy-rbd", true, "deploy rbd csi driver")
|
||||
|
||||
setDefaultKubeconfig()
|
||||
|
||||
|
@ -74,7 +74,9 @@ var _ = Describe("RBD", func() {
|
||||
BeforeEach(func() {
|
||||
c = f.ClientSet
|
||||
createConfigMap(rbdDirPath, f.ClientSet, f)
|
||||
deployRBDPlugin()
|
||||
if deployRBD {
|
||||
deployRBDPlugin()
|
||||
}
|
||||
createRBDStorageClass(f.ClientSet, f, make(map[string]string))
|
||||
createRBDSecret(f.ClientSet, f)
|
||||
deployVault(f.ClientSet, deployTimeout)
|
||||
@ -87,7 +89,9 @@ var _ = Describe("RBD", func() {
|
||||
// log node plugin
|
||||
logsCSIPods("app=csi-rbdplugin", c)
|
||||
}
|
||||
deleteRBDPlugin()
|
||||
if deployRBD {
|
||||
deleteRBDPlugin()
|
||||
}
|
||||
deleteConfigMap(rbdDirPath)
|
||||
deleteResource(rbdExamplePath + "secret.yaml")
|
||||
deleteResource(rbdExamplePath + "storageclass.yaml")
|
||||
|
Loading…
Reference in New Issue
Block a user