File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -659,20 +659,8 @@ func (c *Cluster) Update(oldSpec, newSpec *acidv1.Postgresql) error {
659
659
}
660
660
661
661
// Volume
662
- if oldSpec .Spec .Size != newSpec .Spec .Size {
663
- c .logVolumeChanges (oldSpec .Spec .Volume , newSpec .Spec .Volume )
664
- c .logger .Debugf ("syncing volumes using %q storage resize mode" , c .OpConfig .StorageResizeMode )
665
- if c .OpConfig .StorageResizeMode == "pvc" {
666
- if err := c .syncVolumeClaims (); err != nil {
667
- c .logger .Errorf ("could not sync persistent volume claims: %v" , err )
668
- updateFailed = true
669
- }
670
- } else if c .OpConfig .StorageResizeMode == "ebs" {
671
- if err := c .syncVolumes (); err != nil {
672
- c .logger .Errorf ("could not sync persistent volumes: %v" , err )
673
- updateFailed = true
674
- }
675
- }
662
+ if c .OpConfig .StorageResizeMode != "off" {
663
+ c .syncVolumes ()
676
664
} else {
677
665
c .logger .Infof ("Storage resize is disabled (storage_resize_mode is off). Skipping volume sync." )
678
666
}
You can’t perform that action at this time.
0 commit comments