@@ -67,7 +67,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
67
67
68
68
ephemeralVolume := req .GetVolumeContext ()["csi.storage.k8s.io/ephemeral" ] == "true"
69
69
if ephemeralVolume {
70
- return nodePublishEphermeral (req , ns )
70
+ return nodePublishEphemeral (req , ns )
71
71
}
72
72
73
73
// In case of ephemeral volume staging path not provided
@@ -118,7 +118,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
118
118
return & csi.NodePublishVolumeResponse {}, nil
119
119
}
120
120
121
- func nodePublishEphermeral (req * csi.NodePublishVolumeRequest , ns * nodeServer ) (* csi.NodePublishVolumeResponse , error ) {
121
+ func nodePublishEphemeral (req * csi.NodePublishVolumeRequest , ns * nodeServer ) (* csi.NodePublishVolumeResponse , error ) {
122
122
123
123
var size int
124
124
var err error
@@ -152,8 +152,8 @@ func nodePublishEphermeral(req *csi.NodePublishVolumeRequest, ns *nodeServer) (*
152
152
evol , err := ns .Cloud .CreateVolume (volName , size , volumeType , volAvailability , "" , "" , & properties )
153
153
154
154
if err != nil {
155
- klog .V (3 ).Infof ("Failed to Create Ephermal Volume: %v" , err )
156
- return nil , status .Error (codes .Internal , fmt .Sprintf ("Failed to create Ephermal Volume %v" , err ))
155
+ klog .V (3 ).Infof ("Failed to Create Ephemeral Volume: %v" , err )
156
+ return nil , status .Error (codes .Internal , fmt .Sprintf ("Failed to create Ephemeral Volume %v" , err ))
157
157
}
158
158
159
159
// Wait for volume status to be Available, before attaching
@@ -165,7 +165,7 @@ func nodePublishEphermeral(req *csi.NodePublishVolumeRequest, ns *nodeServer) (*
165
165
}
166
166
}
167
167
168
- klog .V (4 ).Infof ("Ephermeral Volume %s is created" , evol .ID )
168
+ klog .V (4 ).Infof ("Ephemeral Volume %s is created" , evol .ID )
169
169
170
170
// attach volume
171
171
// for attach volume we need to have information about node.
@@ -310,14 +310,14 @@ func (ns *nodeServer) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpu
310
310
}
311
311
312
312
if ephemeralVolume {
313
- return nodeUnpublishEphermeral (req , ns , vol )
313
+ return nodeUnpublishEphemeral (req , ns , vol )
314
314
}
315
315
316
316
return & csi.NodeUnpublishVolumeResponse {}, nil
317
317
318
318
}
319
319
320
- func nodeUnpublishEphermeral (req * csi.NodeUnpublishVolumeRequest , ns * nodeServer , vol * volumes.Volume ) (* csi.NodeUnpublishVolumeResponse , error ) {
320
+ func nodeUnpublishEphemeral (req * csi.NodeUnpublishVolumeRequest , ns * nodeServer , vol * volumes.Volume ) (* csi.NodeUnpublishVolumeResponse , error ) {
321
321
volumeID := vol .ID
322
322
var instanceID string
323
323
0 commit comments