@@ -13,7 +13,6 @@ import (
1313
1414 "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/scale"
1515
16- "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/envvar"
1716 "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/status"
1817
1918 "github.com/pkg/errors"
@@ -65,7 +64,6 @@ const (
6564 agentHealthStatusFilePathEnv = "AGENT_STATUS_FILEPATH"
6665 mongodbImageEnv = "MONGODB_IMAGE"
6766 mongodbRepoUrl = "MONGODB_REPO_URL"
68- mongodbToolsVersionEnv = "MONGODB_TOOLS_VERSION"
6967 headlessAgentEnv = "HEADLESS_AGENT"
7068 podNamespaceEnv = "POD_NAMESPACE"
7169 automationConfigEnv = "AUTOMATION_CONFIG_MAP"
@@ -476,9 +474,7 @@ func buildAutomationConfig(mdb mdbv1.MongoDB, mdbVersionConfig automationconfig.
476474 SetFCV (mdb .GetFCV ()).
477475 AddVersion (mdbVersionConfig ).
478476 AddModifications (getMongodConfigModification (mdb )).
479- AddModifications (modifications ... ).
480- SetToolsVersion (dummyToolsVersionConfig ())
481-
477+ AddModifications (modifications ... )
482478 newAc , err := builder .Build ()
483479 if err != nil {
484480 return automationconfig.AutomationConfig {}, err
@@ -487,21 +483,6 @@ func buildAutomationConfig(mdb mdbv1.MongoDB, mdbVersionConfig automationconfig.
487483 return newAc , nil
488484}
489485
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-
505486func readVersionManifestFromDisk () (automationconfig.VersionManifest , error ) {
506487 versionManifestBytes , err := ioutil .ReadFile (versionManifestFilePath )
507488 if err != nil {
0 commit comments