Skip to content

Commit

Permalink
fix status check
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Jun 29, 2023
1 parent dbee888 commit d32ff44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/manager/volumes/pvc_modifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ func volumesSizeNeedModify(actual []ActualVolume) bool {
// check with status, return need to modify if the size is modifying
oldSize, ok := vol.PVC.Annotations[annoKeyPVCStatusStorageSize]
if !ok {
quantity := getStorageSize(vol.PVC.Spec.Resources.Requests)
// get from status capacity if not modified by the PVC Modifier before
quantity := vol.GetStorageSize()
oldSize = quantity.String()
}
if oldSize != vol.Desired.Size.String() {
Expand Down

0 comments on commit d32ff44

Please sign in to comment.