Skip to content

CLOUDP-324440 Save rs member ids #206

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 11 commits into from
Jul 3, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
* [Manage Database Users using OIDC](https://www.mongodb.com/docs/kubernetes/upcoming/manage-users/) # TODO
* [Authentication and Authorization with OIDC/OAuth 2.0](https://www.mongodb.com/docs/manual/core/oidc/security-oidc/)

## Bug Fixes
* Fixed an issue where moving a **MongoDBMultiCluster** resource to a new project (or a new OM instance) would leave the deployment in a failed state.

<!-- Past Releases -->

# MCK 1.1.0 Release Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@

import kubernetes
import pytest
from kubetester import create_or_update_configmap, read_configmap, try_load, wait_until, random_k8s_name
from kubetester import (
create_or_update_configmap,
random_k8s_name,
read_configmap,
try_load,
wait_until,
)
from kubetester.automation_config_tester import AutomationConfigTester
from kubetester.certs_mongodb_multi import create_multi_cluster_mongodb_tls_certs
from kubetester.kubetester import fixture as yaml_fixture
Expand All @@ -18,15 +24,14 @@
RESOURCE_NAME = "multi-replica-set"
BUNDLE_SECRET_NAME = f"prefix-{RESOURCE_NAME}-cert"


@pytest.fixture(scope="module")
def project_name_prefix(namespace: str) -> str:
return random_k8s_name(f"{namespace}-project-")


@pytest.fixture(scope="module")
def new_project_configmap(
namespace: str,
project_name_prefix: str
) -> str:
def new_project_configmap(namespace: str, project_name_prefix: str) -> str:
cm = read_configmap(namespace=namespace, name="my-project")
project_name = f"{project_name_prefix}-new-project"
return create_or_update_configmap(
Expand Down Expand Up @@ -142,6 +147,7 @@ def test_statefulsets_have_been_scaled_up_correctly(

wait_until(sts_are_ready(mongodb_multi, member_cluster_clients, [2, 1, 2]), timeout=60)


@pytest.mark.e2e_multi_cluster_scale_up_cluster
def test_ops_manager_has_been_updated_correctly_after_scaling():
ac = AutomationConfigTester()
Expand Down Expand Up @@ -175,8 +181,7 @@ def test_scale_up_first_cluster(
mongodb_multi["spec"]["clusterSpecList"][0]["members"] = 3
mongodb_multi.update()


wait_until(sts_are_ready(mongodb_multi, member_cluster_clients, [3,1,2]), timeout=600)
wait_until(sts_are_ready(mongodb_multi, member_cluster_clients, [3, 1, 2]), timeout=600)
mongodb_multi.assert_reaches_phase(Phase.Running, timeout=600)


Expand Down