From 41820f4defc516c528d436f044265de8d646a382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20G=C3=BCne=C5=9F?= Date: Mon, 28 Nov 2022 12:17:19 +0300 Subject: [PATCH] allow SmartUpdate on unmanaged clusters --- pkg/apis/psmdb/v1/psmdb_defaults.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/apis/psmdb/v1/psmdb_defaults.go b/pkg/apis/psmdb/v1/psmdb_defaults.go index 7242e09edf..cb8a1f7a2d 100644 --- a/pkg/apis/psmdb/v1/psmdb_defaults.go +++ b/pkg/apis/psmdb/v1/psmdb_defaults.go @@ -528,10 +528,6 @@ func (cr *PerconaServerMongoDB) CheckNSetDefaults(platform version.Platform, log cr.Spec.ClusterServiceDNSMode = DNSModeInternal } - if cr.Spec.Unmanaged && cr.Spec.UpdateStrategy == SmartUpdateStatefulSetStrategyType { - return errors.New("SmartUpdate is not allowed on unmanaged clusters, set updateStrategy to RollingUpdate or OnDelete") - } - if cr.Spec.UpgradeOptions.VersionServiceEndpoint == "" { cr.Spec.UpgradeOptions.VersionServiceEndpoint = DefaultVersionServiceEndpoint }