mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 08:10:20 +00:00
e2e: add operatorDeployment flag
This commit adds `operatorDeployment` flag, defaults to false. Set this to true for running test on ceph-csi deployment via operator. Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
parent
656d814941
commit
0df5de9d57
@ -52,6 +52,7 @@ func init() {
|
|||||||
flag.StringVar(&fileSystemName, "filesystem", "myfs", "CephFS filesystem to use")
|
flag.StringVar(&fileSystemName, "filesystem", "myfs", "CephFS filesystem to use")
|
||||||
flag.StringVar(&clusterID, "clusterid", "", "Ceph cluster ID to use (defaults to `ceph fsid` detection)")
|
flag.StringVar(&clusterID, "clusterid", "", "Ceph cluster ID to use (defaults to `ceph fsid` detection)")
|
||||||
flag.StringVar(&nfsDriverName, "nfs-driver", "nfs.csi.ceph.com", "name of the driver for NFS-volumes")
|
flag.StringVar(&nfsDriverName, "nfs-driver", "nfs.csi.ceph.com", "name of the driver for NFS-volumes")
|
||||||
|
flag.BoolVar(&operatorDeployment, "operator-deployment", false, "test running on deployment via operator")
|
||||||
setDefaultKubeconfig()
|
setDefaultKubeconfig()
|
||||||
|
|
||||||
// Register framework flags, then handle flags
|
// Register framework flags, then handle flags
|
||||||
|
41
e2e/utils.go
41
e2e/utils.go
@ -80,26 +80,27 @@ const (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// cli flags.
|
// cli flags.
|
||||||
deployTimeout int
|
deployTimeout int
|
||||||
deployCephFS bool
|
deployCephFS bool
|
||||||
deployRBD bool
|
deployRBD bool
|
||||||
deployNFS bool
|
deployNFS bool
|
||||||
testCephFS bool
|
testCephFS bool
|
||||||
testCephFSFscrypt bool
|
testCephFSFscrypt bool
|
||||||
testRBD bool
|
testRBD bool
|
||||||
testRBDFSCrypt bool
|
testRBDFSCrypt bool
|
||||||
testNBD bool
|
testNBD bool
|
||||||
testNFS bool
|
testNFS bool
|
||||||
helmTest bool
|
helmTest bool
|
||||||
upgradeTesting bool
|
upgradeTesting bool
|
||||||
upgradeVersion string
|
upgradeVersion string
|
||||||
cephCSINamespace string
|
cephCSINamespace string
|
||||||
rookNamespace string
|
rookNamespace string
|
||||||
radosNamespace string
|
radosNamespace string
|
||||||
poll = 2 * time.Second
|
poll = 2 * time.Second
|
||||||
isOpenShift bool
|
isOpenShift bool
|
||||||
clusterID string
|
clusterID string
|
||||||
nfsDriverName string
|
nfsDriverName string
|
||||||
|
operatorDeployment bool
|
||||||
)
|
)
|
||||||
|
|
||||||
type cephfsFilesystem struct {
|
type cephfsFilesystem struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user