mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: handle ceph-csi-operator deployment changes
This commits adds e2e/operator.go containing utility methods specific to the operator. Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -52,6 +52,7 @@ func init() {
|
||||
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(&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()
|
||||
|
||||
// Register framework flags, then handle flags
|
||||
@ -91,4 +92,8 @@ func handleFlags() {
|
||||
testNFS = testCephFS
|
||||
deployNFS = deployCephFS
|
||||
}
|
||||
|
||||
if operatorDeployment {
|
||||
cephCSINamespace = "ceph-csi-operator-system"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user