Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Jun 21, 2023
1 parent 816759d commit 0e77011
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/manager/volumes/phase.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,8 @@ func (p *podVolModifier) validate(vol *ActualVolume) error {
if vol.Desired == nil {
return fmt.Errorf("can't match desired volume")
}
<<<<<<< HEAD
if vol.Desired.StorageClass == nil {
// TODO: support default storage class
return fmt.Errorf("can't change storage class to the default one")
}
desired := vol.Desired.Size
actual := getStorageSize(vol.PVC.Spec.Resources.Requests)
=======
desired := vol.Desired.GetStorageSize()
actual := vol.GetStorageSize()
>>>>>>> 0015c826d (fix(volume): fix panic bug when enable ModifyVolume feature (#5058))
result := desired.Cmp(actual)
switch {
case result == 0:
Expand Down

0 comments on commit 0e77011

Please sign in to comment.