Skip to content

Commit

Permalink
include multiAZ change as a part of update for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeevan-ib committed Sep 19, 2023
1 parent ad17c7b commit d064336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/databaseclaim_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d064336

Please sign in to comment.