Skip to content

Commit

Permalink
fix: fixup spec size check
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Möller <jmoller@redhat.com>
  • Loading branch information
jakobmoellerdev committed Apr 26, 2024
1 parent 855844a commit 3cba68e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/driver/internal/k8s/logicalvolume_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ func (s *LogicalVolumeService) ExpandVolume(ctx context.Context, volumeID string
return false, nil
}

if lv.Spec.Size.Cmp(*request) != 0 {
logger.Info("waiting for update of 'spec.size' to propagate"+
if changedLV.Spec.Size.Cmp(*request) != 0 {
logger.Info("waiting for update of 'spec.size' to propagate "+
"to signal requested expansion", "name", lv.Name)
return false, nil
}
Expand Down

0 comments on commit 3cba68e

Please sign in to comment.