mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
e2e: enable topology based provisioning
as we are testing the topology based provisioning in our E2E, we need to set topology=true in E2E. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
e3d1ba7703
commit
7d3bff0654
@ -71,6 +71,7 @@ func createORDeleteRbdResouces(action string) {
|
||||
e2elog.Failf("failed to read content from %s with error %v", rbdDirPath+rbdProvisioner, err)
|
||||
}
|
||||
data = oneReplicaDeployYaml(data)
|
||||
data = enableTopologyInTemplate(data)
|
||||
_, err = framework.RunKubectlInput(cephCSINamespace, data, action, ns, "-f", "-")
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to %s rbd provisioner with error %v", action, err)
|
||||
|
@ -505,6 +505,10 @@ func oneReplicaDeployYaml(template string) string {
|
||||
return re.ReplaceAllString(template, `$1 1`)
|
||||
}
|
||||
|
||||
func enableTopologyInTemplate(data string) string {
|
||||
return strings.ReplaceAll(data, "--feature-gates=Topology=false", "--feature-gates=Topology=true")
|
||||
}
|
||||
|
||||
func validatePVCClone(sourcePvcPath, clonePvcPath, clonePvcAppPath string, f *framework.Framework) {
|
||||
var wg sync.WaitGroup
|
||||
totalCount := 10
|
||||
|
Loading…
Reference in New Issue
Block a user