More logging, some logic change around errors.

This commit is contained in:
Jan Mußler 2021-01-20 12:57:31 +01:00
parent 0ceb554c07
commit f308260d24
1 changed files with 6 additions and 5 deletions

View File

@ -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