@@ -2,11 +2,12 @@ package construct
22
33import (
44 "fmt"
5- "github.com/mongodb/mongodb-kubernetes-operator/pkg/readiness/config"
65 "os"
76 "strconv"
87 "strings"
98
9+ "github.com/mongodb/mongodb-kubernetes-operator/pkg/readiness/config"
10+
1011 "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/envvar"
1112
1213 "github.com/mongodb/mongodb-kubernetes-operator/pkg/automationconfig"
@@ -93,7 +94,7 @@ type MongoDBStatefulSetOwner interface {
9394 // GetNamespace returns the namespace the resource is defined in.
9495 GetNamespace () string
9596 // GetMongoDBVersion returns the version of MongoDB to be used for this resource.
96- GetMongoDBVersion (annotations map [ string ] string ) string
97+ GetMongoDBVersion () string
9798 // AutomationConfigSecretName returns the name of the secret which will contain the automation config.
9899 AutomationConfigSecretName () string
99100 // GetUpdateStrategyType returns the UpdateStrategyType of the statefulset.
@@ -243,7 +244,7 @@ func BuildMongoDBReplicaSetStatefulSetModificationFunction(mdb MongoDBStatefulSe
243244 podtemplatespec .WithVolume (keyFileVolume ),
244245 podtemplatespec .WithServiceAccount (mongodbDatabaseServiceAccountName ),
245246 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 ())),
247248 upgradeInitContainer ,
248249 readinessInitContainer ,
249250 ),
0 commit comments