File tree Expand file tree Collapse file tree 4 files changed +4
-11
lines changed Expand file tree Collapse file tree 4 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import (
30
30
"github.com/10gen/ops-manager-kubernetes/pkg/fcv"
31
31
"github.com/10gen/ops-manager-kubernetes/pkg/kube"
32
32
"github.com/10gen/ops-manager-kubernetes/pkg/util"
33
- "github.com/10gen/ops-manager-kubernetes/pkg/util/architectures"
34
33
"github.com/10gen/ops-manager-kubernetes/pkg/util/env"
35
34
"github.com/10gen/ops-manager-kubernetes/pkg/util/stringutil"
36
35
)
@@ -671,7 +670,7 @@ func (m *MongoDB) CurrentReplicas() int {
671
670
672
671
// GetMongoDBVersion returns the version of the MongoDB.
673
672
func (m * MongoDbSpec ) GetMongoDBVersion (annotations map [string ]string ) string {
674
- return architectures . GetMongoVersionForAutomationConfig ( m .Version , annotations )
673
+ return m .Version
675
674
}
676
675
677
676
func (m * MongoDbSpec ) GetClusterDomain () string {
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import (
27
27
"github.com/10gen/ops-manager-kubernetes/pkg/kube"
28
28
"github.com/10gen/ops-manager-kubernetes/pkg/multicluster/failedcluster"
29
29
"github.com/10gen/ops-manager-kubernetes/pkg/util"
30
- "github.com/10gen/ops-manager-kubernetes/pkg/util/architectures"
31
30
intp "github.com/10gen/ops-manager-kubernetes/pkg/util/int"
32
31
"github.com/10gen/ops-manager-kubernetes/pkg/util/stringutil"
33
32
)
@@ -504,7 +503,7 @@ func (m *MongoDBMultiSpec) GetClusterDomain() string {
504
503
}
505
504
506
505
func (m * MongoDBMultiSpec ) GetMongoDBVersion (annotations map [string ]string ) string {
507
- return architectures . GetMongoVersionForAutomationConfig ( m .Version , annotations )
506
+ return m .Version
508
507
}
509
508
510
509
func (m * MongoDBMultiSpec ) GetSecurityAuthenticationModes () []string {
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import (
21
21
"github.com/10gen/ops-manager-kubernetes/pkg/kube"
22
22
"github.com/10gen/ops-manager-kubernetes/pkg/multicluster"
23
23
"github.com/10gen/ops-manager-kubernetes/pkg/util"
24
- "github.com/10gen/ops-manager-kubernetes/pkg/util/architectures"
25
24
"github.com/10gen/ops-manager-kubernetes/pkg/vault"
26
25
)
27
26
@@ -280,11 +279,6 @@ type AppDbBuilder struct {
280
279
appDb * AppDBSpec
281
280
}
282
281
283
- // GetMongoDBVersionStatic returns the version of the MongoDB.
284
- func (m * AppDBSpec ) GetMongoDBVersionStatic () string {
285
- return architectures .GetMongoVersionForAutomationConfig (m .Version , nil )
286
- }
287
-
288
282
// GetMongoDBVersion returns the version of the MongoDB.
289
283
// For AppDB we directly rely on the version field which can
290
284
// contain -ent or not for enterprise and static containers.
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
mdbv1 "github.com/10gen/ops-manager-kubernetes/api/v1/mdb"
14
14
"github.com/10gen/ops-manager-kubernetes/pkg/tls"
15
15
"github.com/10gen/ops-manager-kubernetes/pkg/util"
16
+ "github.com/10gen/ops-manager-kubernetes/pkg/util/architectures"
16
17
"github.com/10gen/ops-manager-kubernetes/pkg/util/maputil"
17
18
)
18
19
@@ -396,7 +397,7 @@ type ProcessOption func(process Process)
396
397
397
398
func WithResourceSpec (resourceSpec mdbv1.DbSpec , annotations map [string ]string , fcv string ) ProcessOption {
398
399
return func (process Process ) {
399
- processVersion := resourceSpec .GetMongoDBVersion (annotations )
400
+ processVersion := architectures . GetMongoVersionForAutomationConfig ( resourceSpec .GetMongoDBVersion (nil ), annotations )
400
401
process ["version" ] = processVersion
401
402
process ["authSchemaVersion" ] = CalculateAuthSchemaVersion ()
402
403
process ["featureCompatibilityVersion" ] = fcv
You can’t perform that action at this time.
0 commit comments