Skip to content

Commit bc14778

Browse files
authored
[cinder-csi-plugin] Fix typos on the word ephemeral (kubernetes#1483)
1 parent 30ffad4 commit bc14778

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/csi/cinder/nodeserver.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
6767

6868
ephemeralVolume := req.GetVolumeContext()["csi.storage.k8s.io/ephemeral"] == "true"
6969
if ephemeralVolume {
70-
return nodePublishEphermeral(req, ns)
70+
return nodePublishEphemeral(req, ns)
7171
}
7272

7373
// In case of ephemeral volume staging path not provided
@@ -118,7 +118,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
118118
return &csi.NodePublishVolumeResponse{}, nil
119119
}
120120

121-
func nodePublishEphermeral(req *csi.NodePublishVolumeRequest, ns *nodeServer) (*csi.NodePublishVolumeResponse, error) {
121+
func nodePublishEphemeral(req *csi.NodePublishVolumeRequest, ns *nodeServer) (*csi.NodePublishVolumeResponse, error) {
122122

123123
var size int
124124
var err error
@@ -152,8 +152,8 @@ func nodePublishEphermeral(req *csi.NodePublishVolumeRequest, ns *nodeServer) (*
152152
evol, err := ns.Cloud.CreateVolume(volName, size, volumeType, volAvailability, "", "", &properties)
153153

154154
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))
157157
}
158158

159159
// Wait for volume status to be Available, before attaching
@@ -165,7 +165,7 @@ func nodePublishEphermeral(req *csi.NodePublishVolumeRequest, ns *nodeServer) (*
165165
}
166166
}
167167

168-
klog.V(4).Infof("Ephermeral Volume %s is created", evol.ID)
168+
klog.V(4).Infof("Ephemeral Volume %s is created", evol.ID)
169169

170170
// attach volume
171171
// for attach volume we need to have information about node.
@@ -310,14 +310,14 @@ func (ns *nodeServer) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpu
310310
}
311311

312312
if ephemeralVolume {
313-
return nodeUnpublishEphermeral(req, ns, vol)
313+
return nodeUnpublishEphemeral(req, ns, vol)
314314
}
315315

316316
return &csi.NodeUnpublishVolumeResponse{}, nil
317317

318318
}
319319

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) {
321321
volumeID := vol.ID
322322
var instanceID string
323323

0 commit comments

Comments
 (0)