already exists

[ZITADOPER-7]
This commit is contained in:
Haim Kortovich
2024-12-30 14:29:26 -05:00
parent 5f11cd3dc4
commit 996a74f752

View File

@@ -600,7 +600,7 @@ func (r *ZitadelClusterReconciler) reconcileDomainPolicy(ctx context.Context, zi
ValidateOrgDomains: zitadel.Spec.DomainSettings.ValidateOrgDomains, ValidateOrgDomains: zitadel.Spec.DomainSettings.ValidateOrgDomains,
SmtpSenderAddressMatchesInstanceDomain: zitadel.Spec.DomainSettings.SMTPSenderAddressMatchesInstanceDomain, SmtpSenderAddressMatchesInstanceDomain: zitadel.Spec.DomainSettings.SMTPSenderAddressMatchesInstanceDomain,
}); err != nil { }); err != nil {
if !strings.Contains(err.Error(), "not been changed") { if !strings.Contains(err.Error(), "AlreadyExists") {
return ctrl.Result{}, fmt.Errorf("Could not update domain policy config: %v", err) return ctrl.Result{}, fmt.Errorf("Could not update domain policy config: %v", err)
} }
} }