From 07df61a2de60207d8fc4dede6d480a827e9607c8 Mon Sep 17 00:00:00 2001 From: Balaji Jeevan <32107263+bjeevan-ib@users.noreply.github.com> Date: Tue, 19 Sep 2023 14:44:02 -0700 Subject: [PATCH] include multiAZ change as a part of update for postgres (#179) --- controllers/databaseclaim_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/databaseclaim_controller.go b/controllers/databaseclaim_controller.go index d6318569..2c14b873 100644 --- a/controllers/databaseclaim_controller.go +++ b/controllers/databaseclaim_controller.go @@ -2040,10 +2040,12 @@ func (r *DatabaseClaimReconciler) updateDBInstance(ctx context.Context, dbClaim dbClaim.Spec.Tags = r.configureBackupPolicy(dbClaim.Spec.BackupPolicy, dbClaim.Spec.Tags) dbInstance.Spec.ForProvider.Tags = DBClaimTags(dbClaim.Spec.Tags).DBTags() if dbClaim.Spec.Type == defaultPostgresStr { + multiAZ := r.getMultiAZEnabled() params := &r.Input.HostParams ms64 := int64(params.MinStorageGB) dbInstance.Spec.ForProvider.AllocatedStorage = &ms64 dbInstance.Spec.ForProvider.EnableCloudwatchLogsExports = r.Input.EnableCloudwatchLogsExport + dbInstance.Spec.ForProvider.MultiAZ = &multiAZ } enablePerfInsight := r.Input.EnablePerfInsight dbInstance.Spec.ForProvider.EnablePerformanceInsights = &enablePerfInsight