From d064336f8d1a744bf1167b27bcd633524efd7af5 Mon Sep 17 00:00:00 2001 From: bjeevan-ib Date: Tue, 19 Sep 2023 14:31:36 -0700 Subject: [PATCH] include multiAZ change as a part of update for postgres --- 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