From 87659286b7d05481c5b073dc3d142c8fa12fc08c Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Fri, 21 Jan 2022 23:44:49 +0100 Subject: [PATCH] small left over --- pkg/controller/operator_config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/operator_config.go b/pkg/controller/operator_config.go index 4d2110d0e..f53f970f5 100644 --- a/pkg/controller/operator_config.go +++ b/pkg/controller/operator_config.go @@ -56,6 +56,7 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *acidv1.OperatorConfigur result.ReplicationUsername = util.Coalesce(fromCRD.PostgresUsersConfiguration.ReplicationUsername, "standby") result.EnablePasswordRotation = fromCRD.PostgresUsersConfiguration.EnablePasswordRotation result.PasswordRotationInterval = util.CoalesceUInt32(fromCRD.PostgresUsersConfiguration.PasswordRotationInterval, 90) + result.PasswordRotationUserRetention = util.CoalesceUInt32(fromCRD.PostgresUsersConfiguration.DeepCopy().PasswordRotationUserRetention, 180) // major version upgrade config result.MajorVersionUpgradeMode = util.Coalesce(fromCRD.MajorVersionUpgrade.MajorVersionUpgradeMode, "off")