Skip to content

Commit b2ff5a7

Browse files
authored
[Search] Remove references to keyfile secret in snippets and tests (#581)
# Summary With the changes in #527 mongot no longer requires access to the replica set's keyfile. This cleans up tests and doc snippets that are still referencing it. ## Proof of Work <!-- Enter your proof that it works here.--> ## Checklist - [ ] Have you linked a jira ticket and/or is the ticket in the title? - [x] Have you checked whether your jira ticket required DOCSP changes? - [x] Have you added changelog file? - use `skip-changelog` label if not needed - refer to [Changelog files and Release Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes) section in CONTRIBUTING.md for more details
1 parent db71fcf commit b2ff5a7

File tree

5 files changed

+0
-15
lines changed

5 files changed

+0
-15
lines changed

docker/mongodb-kubernetes-tests/tests/search/search_community_external_mongod_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def mdbs(namespace: str, mdbc: MongoDBCommunity) -> MongoDBSearch:
7171
"source": {
7272
"external": {
7373
"hostAndPorts": seeds,
74-
"keyfileSecretRef": {"name": f"{mdbc.name}-keyfile", "key": "keyfile"},
7574
},
7675
"passwordSecretRef": {"name": f"{MDBC_RESOURCE_NAME}-{MONGOT_USER_NAME}-password", "key": "password"},
7776
"username": MONGOT_USER_NAME,

docker/mongodb-kubernetes-tests/tests/search/search_community_external_mongod_tls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def test_create_search_resource(mdbs: MongoDBSearch, mdbc: MongoDBCommunity):
137137
mdbs["spec"]["source"] = {
138138
"external": {
139139
"hostAndPorts": seeds,
140-
"keyfileSecretRef": {"name": f"{mdbc.name}-keyfile"},
141140
"tls": {
142141
"ca": {"name": f"{mdbc.name}-ca"},
143142
},

docs/search/04-search-external-mongod/code_snippets/04_0318_create_external_keyfile_secret.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/search/04-search-external-mongod/code_snippets/04_0320_create_mongodb_search_resource.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ spec:
1010
- ${MDB_EXTERNAL_HOST_0}
1111
- ${MDB_EXTERNAL_HOST_1}
1212
- ${MDB_EXTERNAL_HOST_2}
13-
keyfileSecretRef:
14-
name: ${MDB_EXTERNAL_KEYFILE_SECRET_NAME}
15-
key: keyfile
1613
username: search-sync-source
1714
passwordSecretRef:
1815
name: ${MDB_RESOURCE_NAME}-search-sync-source-password

docs/search/04-search-external-mongod/env_variables.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ export MDB_EXTERNAL_HOST_0="mdbc-rs-0.mdbc-rs-svc.${MDB_NS}.svc.cluster.local:27
1717
export MDB_EXTERNAL_HOST_1="mdbc-rs-1.mdbc-rs-svc.${MDB_NS}.svc.cluster.local:27017"
1818
export MDB_EXTERNAL_HOST_2="mdbc-rs-2.mdbc-rs-svc.${MDB_NS}.svc.cluster.local:27017"
1919

20-
# REPLACE with your external MongoDB keyfile secret name
21-
export MDB_EXTERNAL_KEYFILE_SECRET_NAME="mdbc-rs-keyfile"
22-
23-
# REPLACE with the actual keyfile content from your external MongoDB replica set
24-
# For testing, this will be automatically generated by the MongoDB Community resource
25-
export MDB_EXTERNAL_KEYFILE_CONTENT="your-mongodb-keyfile-content-CHANGE-ME"
26-
2720
# REPLACE with your actual external MongoDB replica set name
2821
export MDB_EXTERNAL_REPLICA_SET_NAME="mdbc-rs"
2922

0 commit comments

Comments
 (0)