rbd: remove topologyConstrainedPools parameter

This commit removes the `topologyConstrainedPools` parameter
from PV volumeAttributes as it is not required.

Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
Praveen M
2024-03-14 17:15:01 +05:30
committed by mergify[bot]
parent 9fb3743280
commit 3538b23794
5 changed files with 38 additions and 16 deletions

View File

@ -30,6 +30,9 @@ import (
const (
keySeparator rune = '/'
labelSeparator string = ","
// topologyPoolsParam is the parameter name used to pass topology constrained pools.
topologyPoolsParam = "topologyConstrainedPools"
)
// GetTopologyFromDomainLabels returns the CSI topology map, determined from
@ -129,7 +132,7 @@ func GetTopologyFromRequest(
var topologyPools []TopologyConstrainedPool
// check if parameters have pool configuration pertaining to topology
topologyPoolsStr := req.GetParameters()["topologyConstrainedPools"]
topologyPoolsStr := req.GetParameters()[topologyPoolsParam]
if topologyPoolsStr == "" {
return nil, nil, nil
}