mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user