-
Notifications
You must be signed in to change notification settings - Fork 22
Fix: Use CLUSTER_DOMAIN environment variable instead of hardcoded cluster.local #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5a475fe
(fix): Use CLUSTER_DOMAIN environment variable instead of the fixed v…
edimarlnx 7b14af5
(fix): Replace CLUSTER_DOMAIN logic with configurable `ClusterDomain`…
edimarlnx d9af10a
(fix): Pass `ClusterDomain` to `GetMongodConfigParameters` and relate…
edimarlnx b1d59ae
Merge branch 'master' into fix/cluster-domain
edimarlnx fc943fc
Update the changelog for new changes
edimarlnx 1d14361
Update changelog/20250925_fix_use_cluster_domain_environment_variable…
edimarlnx 480cc80
Merge branch 'mongodb:master' into fix/cluster-domain
edimarlnx f426bd1
Update changelog/20250925_fix_use_cluster_domain_environment_variable…
edimarlnx e9a5452
feat(crd): add `ClusterDomain` field to MongoDBCommunity CRD
edimarlnx 06bb497
fix(changelog): correct filename for `ClusterDomain` changelog entry
edimarlnx 667f936
Merge branch 'master' into fix/cluster-domain
edimarlnx 5693eef
fix(tests): remove redundant arguments from URI methods
edimarlnx ca23e1f
Merge branch 'master' into fix/cluster-domain
edimarlnx d6ae737
feat(changelog): update details for configurable `ClusterDomain` impl…
edimarlnx eb1f75e
feat(changelog): simplify details for `ClusterDomain` implementation
edimarlnx 553987c
feat(tests): fix broken tests
edimarlnx 47adda1
Merge branch 'master' into fix/cluster-domain
edimarlnx 3dad796
Fix linter issues
edimarlnx abcfb28
Merge branch 'master' into fix/cluster-domain
edimarlnx 9827dd2
Update changelog/20250925_feature_use_cluster_domain_environment_vari…
MaciejKaras File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
changelog/20250925_feature_use_cluster_domain_environment_variable.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
kind: feature | ||
edimarlnx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
date: 2025-09-25 | ||
--- | ||
|
||
* **MongoDBCommunity**: Add support for custom cluster domains via `CLUSTER_DOMAIN` environment variable and `ClusterDomain` spec field | ||
* Replace hardcoded `cluster.local` value with configurable cluster domain | ||
* Add optional `ClusterDomain` field to `MongoDBCommunitySpec` with hostname format validation | ||
* Implement `GetClusterDomain()` method with fallback hierarchy: spec field → environment variable → default `cluster.local` | ||
* Update MongoDB connection URI generation (standard and SRV) to use configurable domain | ||
* Fix host seed generation in `CommunitySearchSource` and `EnterpriseResourceSearchSource` to use configurable domain | ||
* Update mongod configuration parameters for MongoDB Search with correct cluster domain | ||
* Remove `clusterDomain` parameter from public methods (`MongoURI()`, `MongoSRVURI()`, `MongoAuthUserURI()`, `MongoAuthUserSRVURI()`) - now retrieve domain directly from spec | ||
* Update all unit tests to reflect new structure | ||
edimarlnx marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.