mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 09:35:08 +02:00
More logging, some logic change around errors.
This commit is contained in:
@@ -35,11 +35,12 @@ func (c *Cluster) syncVolumes() error {
|
|||||||
|
|
||||||
err = c.populateVolumeMetaData()
|
err = c.populateVolumeMetaData()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
c.logger.Errorf("populating EBS meta data failed, skipping potential adjustements: %v", err)
|
||||||
|
|
||||||
}
|
err = c.syncUnderlyingEBSVolume()
|
||||||
err = c.syncUnderlyingEBSVolume()
|
if err != nil {
|
||||||
if err != nil {
|
c.logger.Errorf("errors occured during EBS volume adjustments: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// resize pvc to adjust filesystem size until better K8s support
|
// resize pvc to adjust filesystem size until better K8s support
|
||||||
@@ -71,7 +72,7 @@ func (c *Cluster) syncVolumes() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cluster) syncUnderlyingEBSVolume() error {
|
func (c *Cluster) syncUnderlyingEBSVolume() error {
|
||||||
c.logger.Infof("starting to sync EBS volume: type, iops, throughput and size")
|
c.logger.Infof("starting to sync EBS volumes: type, iops, throughput, and size")
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user