mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: added test to verify read affinity functionality
e2e test case is added to test if read affinity is enabled by verifying read_from_replica=localize option is passed Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -827,6 +827,15 @@ func enableTopologyInTemplate(data string) string {
|
||||
return strings.ReplaceAll(data, "--feature-gates=Topology=false", "--feature-gates=Topology=true")
|
||||
}
|
||||
|
||||
func enableReadAffinityInTemplate(template string) string {
|
||||
return strings.ReplaceAll(template, "# - \"--enable-read-affinity=true\"", "- \"--enable-read-affinity=true\"")
|
||||
}
|
||||
|
||||
func addCrsuhLocationLabels(template, labels string) string {
|
||||
return strings.ReplaceAll(template, "# - \"--crush-location-labels=topology.io/zone,topology.io/rack\"",
|
||||
"- \"--crush-location-labels="+labels+"\"")
|
||||
}
|
||||
|
||||
func writeDataAndCalChecksum(app *v1.Pod, opt *metav1.ListOptions, f *framework.Framework) (string, error) {
|
||||
filePath := app.Spec.Containers[0].VolumeMounts[0].MountPath + "/test"
|
||||
// write data in PVC
|
||||
|
Reference in New Issue
Block a user