mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 06:01:33 +02:00
do not call EBS api when there are no pvs (#1851)
* do not call EBS api when there are no pvs * no extra aws api call in executeEBSMigration, operate on fetched cluster.EBSVolumes
This commit is contained in:
@@ -149,7 +149,6 @@ func New(cfg Config, kubeClient k8sutil.KubernetesClient, pgSpec acidv1.Postgres
|
||||
cluster.EBSVolumes = make(map[string]volumes.VolumeProperties)
|
||||
if cfg.OpConfig.StorageResizeMode != "pvc" || cfg.OpConfig.EnableEBSGp3Migration {
|
||||
cluster.VolumeResizer = &volumes.EBSVolumeResizer{AWSRegion: cfg.OpConfig.AWSRegion}
|
||||
|
||||
}
|
||||
|
||||
return cluster
|
||||
|
||||
Reference in New Issue
Block a user