Skip to content

Commit 4bcba59

Browse files
Use enterprise mongodb for enterprise search snippets (mongodb#449)
# Summary In enterprise snippets we declare the mdb version as 8.0.10 without the `-ent` suffix. The agents then will download a community version of the mongodb, not the enterprise: ## 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? - [ ] Have you checked whether your jira ticket required DOCSP changes? - [ ] 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 --------- Co-authored-by: Yavor Georgiev <yavor.georgiev@mongodb.com> Co-authored-by: Yavor Georgiev <fealebenpae@users.noreply.github.com>
1 parent 694c8d7 commit 4bcba59

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

controllers/searchcontroller/enterprise_search_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (r EnterpriseResourceSearchSource) KeyfileSecretName() string {
5151
}
5252

5353
func (r EnterpriseResourceSearchSource) Validate() error {
54-
version, err := semver.ParseTolerant(r.Spec.GetMongoDBVersion())
54+
version, err := semver.ParseTolerant(util.StripEnt(r.Spec.GetMongoDBVersion()))
5555
if err != nil {
5656
return xerrors.Errorf("error parsing MongoDB version '%s': %w", r.Spec.GetMongoDBVersion(), err)
5757
} else if version.LT(semver.MustParse("8.0.10")) {

docker/mongodb-kubernetes-tests/tests/search/fixtures/enterprise-replicaset-sample-mflix.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: mdb-rs
66
spec:
77
members: 3
8-
version: 8.0.10
8+
version: 8.0.10-ent
99
type: ReplicaSet
1010
opsManager:
1111
configMapRef:

docs/search/02-search-enterprise-deploy/code_snippets/02_0305_create_mongodb_database_resource.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: ${MDB_RESOURCE_NAME}
66
spec:
77
members: 3
8-
version: ${MDB_VERSION}
8+
version: ${MDB_VERSION}-ent
99
type: ReplicaSet
1010
opsManager:
1111
configMapRef:

0 commit comments

Comments
 (0)