@@ -2,11 +2,12 @@ package construct
2
2
3
3
import (
4
4
"fmt"
5
- "github.com/mongodb/mongodb-kubernetes-operator/pkg/readiness/config"
6
5
"os"
7
6
"strconv"
8
7
"strings"
9
8
9
+ "github.com/mongodb/mongodb-kubernetes-operator/pkg/readiness/config"
10
+
10
11
"github.com/mongodb/mongodb-kubernetes-operator/pkg/util/envvar"
11
12
12
13
"github.com/mongodb/mongodb-kubernetes-operator/pkg/automationconfig"
@@ -93,7 +94,7 @@ type MongoDBStatefulSetOwner interface {
93
94
// GetNamespace returns the namespace the resource is defined in.
94
95
GetNamespace () string
95
96
// GetMongoDBVersion returns the version of MongoDB to be used for this resource.
96
- GetMongoDBVersion (annotations map [ string ] string ) string
97
+ GetMongoDBVersion () string
97
98
// AutomationConfigSecretName returns the name of the secret which will contain the automation config.
98
99
AutomationConfigSecretName () string
99
100
// GetUpdateStrategyType returns the UpdateStrategyType of the statefulset.
@@ -243,7 +244,7 @@ func BuildMongoDBReplicaSetStatefulSetModificationFunction(mdb MongoDBStatefulSe
243
244
podtemplatespec .WithVolume (keyFileVolume ),
244
245
podtemplatespec .WithServiceAccount (mongodbDatabaseServiceAccountName ),
245
246
podtemplatespec .WithContainer (AgentName , mongodbAgentContainer (mdb .AutomationConfigSecretName (), mongodbAgentVolumeMounts , agentLogLevel , agentLogFile , agentMaxLogFileDurationHours , agentImage )),
246
- podtemplatespec .WithContainer (MongodbName , mongodbContainer (mdb .GetMongoDBVersion (nil ), mongodVolumeMounts , mdb .GetMongodConfiguration ())),
247
+ podtemplatespec .WithContainer (MongodbName , mongodbContainer (mdb .GetMongoDBVersion (), mongodVolumeMounts , mdb .GetMongodConfiguration ())),
247
248
upgradeInitContainer ,
248
249
readinessInitContainer ,
249
250
),
0 commit comments