Skip to content

Commit

Permalink
Merge pull request kubernetes#115982 from peaaceChoi/master
Browse files Browse the repository at this point in the history
Update toplogy keyset initialization
  • Loading branch information
k8s-ci-robot committed Jun 19, 2023
2 parents 26f7f8e + 4d3f92d commit bfd833b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/volume/csi/nodeinfomanager/nodeinfomanager.go
Expand Up @@ -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
Expand Down

0 comments on commit bfd833b

Please sign in to comment.