Merge pull request #115982 from peaaceChoi/master

Update toplogy keyset initialization
This commit is contained in:
Kubernetes Prow Robot 2023-06-19 04:04:21 -07:00 committed by GitHub
commit bfd833baf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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