Skip to content

Commit

Permalink
allow SmartUpdate on unmanaged clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
egegunes committed Apr 6, 2024
1 parent 4d3599c commit 41820f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/apis/psmdb/v1/psmdb_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 41820f4

Please sign in to comment.