File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ func (ns *GCENodeServer) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRe
581
581
}
582
582
583
583
if ns .EnableDiskTopology {
584
- labels , err := ns .gkeTopologyLabels (ctx , ns .MetadataService .GetName ())
584
+ labels , err := ns .fetchGKETopologyLabels (ctx , ns .MetadataService .GetName ())
585
585
if err != nil {
586
586
// Perhaps we don't want to fail here. We are introducing a new
587
587
// dependency and we might be better off allowing this failure to
@@ -611,9 +611,9 @@ func (ns *GCENodeServer) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRe
611
611
return resp , err
612
612
}
613
613
614
- // gkeTopologyLabels retrieves the node labels with the prefix
614
+ // fetchGKETopologyLabels retrieves the node labels with the prefix
615
615
// `topology.gke.io/` for the specified node.
616
- func (ns * GCENodeServer ) gkeTopologyLabels (ctx context.Context , nodeName string ) (map [string ]string , error ) {
616
+ func (ns * GCENodeServer ) fetchGKETopologyLabels (ctx context.Context , nodeName string ) (map [string ]string , error ) {
617
617
klog .V (2 ).Infof ("Retrieving node topology labels for node %q" , nodeName )
618
618
619
619
node , err := ns .KubeClient .CoreV1 ().Nodes ().Get (ctx , nodeName , metav1.GetOptions {})
You can’t perform that action at this time.
0 commit comments