Skip to content
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

K8SPSMDB-1234 Ability to use non default port 27017 for Mongo components #1819

Merged
merged 13 commits into from
Feb 20, 2025

Conversation

gkech
Copy link
Contributor

@gkech gkech commented Feb 4, 2025

K8SPSMDB-1234 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:

Until now all the major mongo components i.e. mongos, mongod and cfg were using the default mongodb port 27017. With this PR we introduce a new configuration option for setting the port for the aforementioned components.

Cause:
Short explanation of the root cause of the issue if applicable.

Solution:
Parse from the mongo config the port for mongos, mongod and cfg and use it throughout the service, We also change some of our e2e tests to verify the changes and ensure no breaking changes.

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?
  • Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported MongoDB version?
  • Does the change support oldest and newest supported Kubernetes version?

@pull-request-size pull-request-size bot added the size/L 100-499 lines label Feb 4, 2025
@gkech gkech force-pushed the K8SPSMDB-1234 branch 5 times, most recently from ad8bc5e to 294d2ba Compare February 11, 2025 12:23
@pull-request-size pull-request-size bot added size/XL 500-999 lines and removed size/L 100-499 lines labels Feb 11, 2025
@gkech gkech force-pushed the K8SPSMDB-1234 branch 7 times, most recently from 298a02c to 3c94173 Compare February 13, 2025 11:03
@gkech gkech changed the title K8SPSMDB 1234 K8SPSMDB-1234 Ability to use non default port 27017 for Mongo components Feb 13, 2025
@gkech gkech marked this pull request as ready for review February 13, 2025 11:25
@pull-request-size pull-request-size bot added size/XXL 1000+ lines and removed size/XL 500-999 lines labels Feb 17, 2025
egegunes
egegunes previously approved these changes Feb 20, 2025
@JNKPercona
Copy link
Collaborator

Test name Status
arbiter passed
balancer passed
custom-replset-name passed
custom-tls passed
custom-users-roles passed
custom-users-roles-sharded passed
cross-site-sharded passed
data-at-rest-encryption passed
data-sharded passed
demand-backup passed
demand-backup-fs passed
demand-backup-eks-credentials-irsa passed
demand-backup-physical passed
demand-backup-physical-sharded passed
demand-backup-sharded passed
expose-sharded passed
ignore-labels-annotations passed
init-deploy passed
finalizer passed
ldap passed
ldap-tls passed
limits passed
liveness passed
mongod-major-upgrade passed
mongod-major-upgrade-sharded passed
monitoring-2-0 passed
multi-cluster-service passed
non-voting passed
one-pod passed
operator-self-healing-chaos passed
pitr passed
pitr-sharded passed
pitr-physical passed
preinit-updates passed
pvc-resize passed
recover-no-primary passed
replset-overrides passed
rs-shard-migration passed
scaling passed
scheduled-backup passed
security-context passed
self-healing-chaos passed
service-per-pod passed
serviceless-external-nodes passed
smart-update passed
split-horizon passed
stable-resource-version passed
storage passed
tls-issue-cert-manager passed
upgrade passed
upgrade-consistency passed
upgrade-consistency-sharded-tls passed
upgrade-sharded passed
users passed
version-service passed
We run 55 out of 55

commit: a1c1e84
image: perconalab/percona-server-mongodb-operator:PR-1819-a1c1e84c

@hors hors merged commit 6860ba9 into main Feb 20, 2025
13 of 15 checks passed
@hors hors deleted the K8SPSMDB-1234 branch February 20, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL 1000+ lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants