Update toplogy keyset initialization

This commit is contained in:
peaaceChoi 2023-02-23 10:58:22 +09:00
parent 4dd887797f
commit 4d3f92d5f7

View File

@ -526,10 +526,7 @@ func (nim *nodeInfoManager) installDriverToCSINode(
return fmt.Errorf("error getting CSI client") return fmt.Errorf("error getting CSI client")
} }
topologyKeys := make(sets.String) topologyKeys := sets.StringKeySet(topology)
for k := range topology {
topologyKeys.Insert(k)
}
specModified := true specModified := true
// Clone driver list, omitting the driver that matches the given driverName // Clone driver list, omitting the driver that matches the given driverName