Skip to content

Commit

Permalink
fix: allow changing the replica count for a v2 volume
Browse files Browse the repository at this point in the history
Signed-off-by: jinhong.kim0 <jinhong.kim0@navercorp.com>
(cherry picked from commit 470b53c)
  • Loading branch information
hookak authored and derekbit committed Nov 14, 2024
1 parent 70fdb98 commit 28ae58f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions webhook/resources/volume/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,6 @@ func (v *volumeValidator) Update(request *admission.Request, oldObj runtime.Obje
return werror.NewInvalidError(err.Error(), "")
}

if oldVolume.Spec.NumberOfReplicas != newVolume.Spec.NumberOfReplicas {
err := fmt.Errorf("changing number of replicas for volume %v is not supported for data engine %v",
newVolume.Name, newVolume.Spec.DataEngine)
return werror.NewInvalidError(err.Error(), "")
}

if oldVolume.Spec.BackingImage != newVolume.Spec.BackingImage {
err := fmt.Errorf("changing backing image for volume %v is not supported for data engine %v",
newVolume.Name, newVolume.Spec.DataEngine)
Expand Down

0 comments on commit 28ae58f

Please sign in to comment.