@@ -13,7 +13,6 @@ import (
13
13
14
14
"github.com/mongodb/mongodb-kubernetes-operator/pkg/util/scale"
15
15
16
- "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/envvar"
17
16
"github.com/mongodb/mongodb-kubernetes-operator/pkg/util/status"
18
17
19
18
"github.com/pkg/errors"
@@ -65,7 +64,6 @@ const (
65
64
agentHealthStatusFilePathEnv = "AGENT_STATUS_FILEPATH"
66
65
mongodbImageEnv = "MONGODB_IMAGE"
67
66
mongodbRepoUrl = "MONGODB_REPO_URL"
68
- mongodbToolsVersionEnv = "MONGODB_TOOLS_VERSION"
69
67
headlessAgentEnv = "HEADLESS_AGENT"
70
68
podNamespaceEnv = "POD_NAMESPACE"
71
69
automationConfigEnv = "AUTOMATION_CONFIG_MAP"
@@ -476,9 +474,7 @@ func buildAutomationConfig(mdb mdbv1.MongoDB, mdbVersionConfig automationconfig.
476
474
SetFCV (mdb .GetFCV ()).
477
475
AddVersion (mdbVersionConfig ).
478
476
AddModifications (getMongodConfigModification (mdb )).
479
- AddModifications (modifications ... ).
480
- SetToolsVersion (dummyToolsVersionConfig ())
481
-
477
+ AddModifications (modifications ... )
482
478
newAc , err := builder .Build ()
483
479
if err != nil {
484
480
return automationconfig.AutomationConfig {}, err
@@ -487,21 +483,6 @@ func buildAutomationConfig(mdb mdbv1.MongoDB, mdbVersionConfig automationconfig.
487
483
return newAc , nil
488
484
}
489
485
490
- // dummyToolsVersionConfig generates a dummy config for the tools settings in the automation config.
491
- // The agent will not uses any of these values but requires them to be set.
492
- // TODO: Remove this once the agent doesn't require any config: https://jira.mongodb.org/browse/CLOUDP-66024.
493
- func dummyToolsVersionConfig () automationconfig.ToolsVersion {
494
- return automationconfig.ToolsVersion {
495
- Version : envvar .GetEnvOrDefault (mongodbToolsVersionEnv , "100.1.0" ),
496
- URLs : map [string ]map [string ]string {
497
- // The OS must be correctly set. Our Docker image uses Ubuntu 16.04.
498
- "linux" : {
499
- "ubuntu1604" : "https://dummy" ,
500
- },
501
- },
502
- }
503
- }
504
-
505
486
func readVersionManifestFromDisk () (automationconfig.VersionManifest , error ) {
506
487
versionManifestBytes , err := ioutil .ReadFile (versionManifestFilePath )
507
488
if err != nil {
0 commit comments