Wrong toggle.

This commit is contained in:
Jan Mußler 2020-12-08 23:00:49 +01:00
parent 523e2d67d8
commit 4193dce95e
1 changed files with 2 additions and 1 deletions

View File

@ -139,9 +139,10 @@ func New(cfg Config, kubeClient k8sutil.KubernetesClient, pgSpec acidv1.Postgres
cluster.patroni = patroni.New(cluster.logger)
cluster.eventRecorder = eventRecorder
cluster.EBSVolumes = make(map[string]volumes.VolumeProperties)
if cfg.OpConfig.StorageResizeMode != "pvc" {
cluster.VolumeResizer = &volumes.EBSVolumeResizer{AWSRegion: cfg.OpConfig.AWSRegion}
cluster.EBSVolumes = make(map[string]volumes.VolumeProperties)
}
return cluster