Skip to content

Commit 25205fa

Browse files
committed
wip
1 parent 914b213 commit 25205fa

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

controllers/operator/mongodbsearch_controller_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ func buildExpectedMongotConfig(search *searchv1.MongoDBSearch, mdbc *mdbcv1.Mong
7878
SyncSource: mongot.ConfigSyncSource{
7979
ReplicaSet: mongot.ConfigReplicaSet{
8080
HostAndPort: fmt.Sprintf("%s.%s.svc.cluster.local:%d", mdbc.Name+"-svc", search.Namespace, 27017),
81-
Username: "__system",
82-
PasswordFile: "/tmp/keyfile",
81+
Username: "mongot-user",
82+
PasswordFile: "/tmp/sourceUserPassword",
8383
TLS: ptr.To(false),
8484
ReadPreference: ptr.To("secondaryPreferred"),
85+
ReplicaSetName: "mdb",
8586
},
8687
},
8788
Storage: mongot.ConfigStorage{
@@ -105,7 +106,7 @@ func buildExpectedMongotConfig(search *searchv1.MongoDBSearch, mdbc *mdbcv1.Mong
105106
Address: "0.0.0.0:8080",
106107
},
107108
Logging: mongot.ConfigLogging{
108-
Verbosity: "DEBUG",
109+
Verbosity: "TRACE",
109110
LogPath: nil,
110111
},
111112
}

controllers/search_controller/mongodbsearch_reconcile_helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ func createMongotConfig(search *searchv1.MongoDBSearch, db SearchSourceDBResourc
216216
PasswordFile: "/tmp/sourceUserPassword",
217217
TLS: ptr.To(false),
218218
ReadPreference: ptr.To("secondaryPreferred"),
219+
ReplicaSetName: db.Name(),
219220
},
220221
},
221222
Storage: mongot.ConfigStorage{

docker/mongodb-kubernetes-tests/kubetester/helm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def helm_repo_add(repo_name: str, url: str):
120120

121121

122122
def process_run_and_check(args, **kwargs):
123-
if 'check' not in kwargs:
124-
kwargs['check'] = True
123+
if "check" not in kwargs:
124+
kwargs["check"] = True
125125

126126
try:
127127
logger.debug(f"subprocess.run: {args}")

helm_chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,6 @@ search:
227227
# # default MongoDB Search version used; can be overridden by setting MongoDBSearch.spec.version field.
228228
# version: 1.47.0
229229
repo: 268558157000.dkr.ecr.us-east-1.amazonaws.com/dev
230-
name: mongodb-search-community
230+
name: mongot/community
231231
# default MongoDB Search version used; can be overridden by setting MongoDBSearch.spec.version field.
232-
version: 1.47.0
232+
version: b9b80915f5571bfa5fc2aa70acb20d784e68d79b

mongodb-community-operator/pkg/mongot/mongot_config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type ConfigReplicaSet struct {
1717
HostAndPort string `json:"hostAndPort"`
1818
Username string `json:"username"`
1919
PasswordFile string `json:"passwordFile"`
20+
ReplicaSetName string `json:"replicaSetName"`
2021
TLS *bool `json:"tls,omitempty"`
2122
ReadPreference *string `json:"readPreference,omitempty"`
2223
}

scripts/dev/contexts/e2e_mdb_community

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export OM_EXTERNALLY_CONFIGURED="true"
1414
# Temporary development images built from mongot master
1515
#export MDB_SEARCH_COMMUNITY_VERSION="776d43523d185b6b234289e17c191712a3e6569b" # master
1616
#export MDB_SEARCH_COMMUNITY_VERSION="d6884ae132aab30497af55dbaff05e8274e9775f" # Local->Admin
17-
export MDB_SEARCH_COMMUNITY_VERSION="ad8acf5c3a045d6e0306ad67d61fcb5be40f57ae" # hardcoded mdbc-rs replicaset name
17+
#export MDB_SEARCH_COMMUNITY_VERSION="ad8acf5c3a045d6e0306ad67d61fcb5be40f57ae" # hardcoded mdbc-rs replicaset name
18+
export MDB_SEARCH_COMMUNITY_VERSION="b9b80915f5571bfa5fc2aa70acb20d784e68d79b" # hardcoded Local->Admin, handled replicaSetName in config
1819
export MDB_SEARCH_COMMUNITY_NAME="mongot/community"
1920
export MDB_SEARCH_COMMUNITY_REPO_URL="268558157000.dkr.ecr.eu-west-1.amazonaws.com"

0 commit comments

Comments
 (0)