e2e: unset readAffinity cli option

Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
Praveen M 2024-10-23 13:44:50 +05:30
parent 0df5de9d57
commit 4a34a891cf
2 changed files with 0 additions and 14 deletions

View File

@ -235,13 +235,9 @@ type yamlResourceNamespaced struct {
filename string filename string
namespace string namespace string
domainLabel string domainLabel string
crushLocationLabels string
// set the number of replicas in a Deployment to 1. // set the number of replicas in a Deployment to 1.
oneReplica bool oneReplica bool
// enable read affinity support (for RBD)
enableReadAffinity bool
} }
func (yrn *yamlResourceNamespaced) Do(action kubectlAction) error { func (yrn *yamlResourceNamespaced) Do(action kubectlAction) error {
@ -260,14 +256,6 @@ func (yrn *yamlResourceNamespaced) Do(action kubectlAction) error {
data = addTopologyDomainsToDSYaml(data, yrn.domainLabel) data = addTopologyDomainsToDSYaml(data, yrn.domainLabel)
} }
if yrn.enableReadAffinity {
data = enableReadAffinityInTemplate(data)
}
if yrn.crushLocationLabels != "" {
data = addCrsuhLocationLabels(data, yrn.crushLocationLabels)
}
err = retryKubectlInput(yrn.namespace, action, data, deployTimeout) err = retryKubectlInput(yrn.namespace, action, data, deployTimeout)
if err != nil { if err != nil {
return fmt.Errorf("failed to %s resource %q in namespace %q: %w", action, yrn.filename, yrn.namespace, err) return fmt.Errorf("failed to %s resource %q in namespace %q: %w", action, yrn.filename, yrn.namespace, err)

View File

@ -170,8 +170,6 @@ func createORDeleteRbdResources(action kubectlAction) {
filename: rbdDirPath + rbdNodePlugin, filename: rbdDirPath + rbdNodePlugin,
namespace: cephCSINamespace, namespace: cephCSINamespace,
domainLabel: nodeRegionLabel + "," + nodeZoneLabel, domainLabel: nodeRegionLabel + "," + nodeZoneLabel,
enableReadAffinity: true,
crushLocationLabels: crushLocationRegionLabel + "," + crushLocationZoneLabel,
}, },
} }