just one debug line for syncing volumes
This commit is contained in:
parent
84b306365f
commit
fe12184f17
|
|
@ -672,15 +672,13 @@ func (c *Cluster) Update(oldSpec, newSpec *acidv1.Postgresql) error {
|
||||||
// Volume
|
// Volume
|
||||||
if oldSpec.Spec.Size != newSpec.Spec.Size {
|
if oldSpec.Spec.Size != newSpec.Spec.Size {
|
||||||
c.logVolumeChanges(oldSpec.Spec.Volume, newSpec.Spec.Volume)
|
c.logVolumeChanges(oldSpec.Spec.Volume, newSpec.Spec.Volume)
|
||||||
|
c.logger.Debugf("syncing volumes using %q resize mode", c.OpConfig.StorageResizeMode)
|
||||||
if c.OpConfig.StorageResizeMode == "pvc" {
|
if c.OpConfig.StorageResizeMode == "pvc" {
|
||||||
c.logger.Debugf("syncing persistent volume claims using %q resize mode", c.OpConfig.StorageResizeMode)
|
|
||||||
if err := c.syncVolumeClaims(); err != nil {
|
if err := c.syncVolumeClaims(); err != nil {
|
||||||
c.logger.Errorf("could not sync persistent volume claims: %v", err)
|
c.logger.Errorf("could not sync persistent volume claims: %v", err)
|
||||||
updateFailed = true
|
updateFailed = true
|
||||||
}
|
}
|
||||||
} else if c.OpConfig.StorageResizeMode == "ebs" {
|
} else if c.OpConfig.StorageResizeMode == "ebs" {
|
||||||
c.logger.Debugf("syncing persistent volumes using %q resize mode", c.OpConfig.StorageResizeMode)
|
|
||||||
if err := c.syncVolumes(); err != nil {
|
if err := c.syncVolumes(); err != nil {
|
||||||
c.logger.Errorf("could not sync persistent volumes: %v", err)
|
c.logger.Errorf("could not sync persistent volumes: %v", err)
|
||||||
updateFailed = true
|
updateFailed = true
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@ func (c *Cluster) Sync(newSpec *acidv1.Postgresql) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.logger.Debugf("syncing volumes using %q resize mode", c.OpConfig.StorageResizeMode)
|
||||||
if c.OpConfig.StorageResizeMode == "pvc" {
|
if c.OpConfig.StorageResizeMode == "pvc" {
|
||||||
c.logger.Debugf("syncing persistent volume claims using %q resize mode", c.OpConfig.StorageResizeMode)
|
|
||||||
if err = c.syncVolumeClaims(); err != nil {
|
if err = c.syncVolumeClaims(); err != nil {
|
||||||
err = fmt.Errorf("could not sync persistent volume claims: %v", err)
|
err = fmt.Errorf("could not sync persistent volume claims: %v", err)
|
||||||
return err
|
return err
|
||||||
|
|
@ -70,7 +70,6 @@ func (c *Cluster) Sync(newSpec *acidv1.Postgresql) error {
|
||||||
// TODO: handle the case of the cluster that is downsized and enlarged again
|
// TODO: handle the case of the cluster that is downsized and enlarged again
|
||||||
// (there will be a volume from the old pod for which we can't act before the
|
// (there will be a volume from the old pod for which we can't act before the
|
||||||
// the statefulset modification is concluded)
|
// the statefulset modification is concluded)
|
||||||
c.logger.Debugf("syncing persistent volumes using %q resize mode", c.OpConfig.StorageResizeMode)
|
|
||||||
if err = c.syncVolumes(); err != nil {
|
if err = c.syncVolumes(); err != nil {
|
||||||
err = fmt.Errorf("could not sync persistent volumes: %v", err)
|
err = fmt.Errorf("could not sync persistent volumes: %v", err)
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue