Skip to content

Commit bf74d49

Browse files
committed
doc: Clarify error handling in ResizeVolume
1 parent 4833b7a commit bf74d49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: pkg/driver/controller_server.go

+1
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ func (d *Driver) ControllerExpandVolume(ctx context.Context, req *csi.Controller
445445

446446
log.Info().Int64("size_gb", desiredSize).Str("volume_id", volID).Msg("Volume resize request sent")
447447
_, err = d.CivoClient.ResizeVolume(volID, int(desiredSize))
448+
// Handles unexpected errors (e.g., API retry error or other upstream errors).
448449
if err != nil {
449450
log.Error().
450451
Err(err).

0 commit comments

Comments
 (0)