Skip to content

Add a default value for OPERATOR_NAME env var #248

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 1 commit into from
Jul 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 7 additions & 0 deletions scripts/dev/contexts/e2e_multi_cluster_2_clusters
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ export test_pod_cluster=kind-e2e-cluster-1
export TEST_POD_CLUSTER=kind-e2e-cluster-1
export ops_manager_version="cloud_qa"

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/e2e_multi_cluster_kind
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ export CENTRAL_CLUSTER=kind-e2e-operator
export TEST_POD_CLUSTER=kind-e2e-cluster-1
export test_pod_cluster=kind-e2e-cluster-1
export ops_manager_version="cloud_qa"

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/e2e_multi_cluster_om_appdb
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ export CENTRAL_CLUSTER=kind-e2e-cluster-1
export TEST_POD_CLUSTER=kind-e2e-cluster-1
export test_pod_cluster=kind-e2e-cluster-1
export ops_manager_version="${CUSTOM_OM_VERSION}"

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ export CENTRAL_CLUSTER=kind-e2e-operator
export test_pod_cluster=kind-e2e-cluster-1
export TEST_POD_CLUSTER=kind-e2e-cluster-1
export ops_manager_version="${CUSTOM_OM_VERSION}"

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/e2e_static_multi_cluster_2_clusters
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ export ops_manager_version="cloud_qa"

export MDB_DEFAULT_ARCHITECTURE=static
export CUSTOM_MDB_VERSION=6.0.5

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/e2e_static_multi_cluster_kind
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ export MDB_DEFAULT_ARCHITECTURE=static
# For upgrade/downgrade tests we need to override this for static containers since we don't have 5.0.x versions
# of MDB binaries for ubi9
export CUSTOM_MDB_PREV_VERSION=6.0.5

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/e2e_static_multi_cluster_om_appdb
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ export MDB_DEFAULT_ARCHITECTURE=static

# clear cloud-qa settings
export OM_ORGID=""

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/manual_telemetry_multi_cluster_dev
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ export MDB_OPERATOR_TELEMETRY_SEND_ENABLED=true
export MDB_OPERATOR_TELEMETRY_SEND_BASEURL="https://cloud-dev.mongodb.com/"
export MDB_OPERATOR_TELEMETRY_SEND_FREQUENCY="10m" # let's send frequently
export MDB_OPERATOR_TELEMETRY_COLLECTION_FREQUENCY="1m" # let's collect as often as we can

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/manual_telemetry_multi_cluster_prod
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ export ops_manager_version="cloud_qa"
export MDB_OPERATOR_TELEMETRY_SEND_ENABLED=true
export MDB_OPERATOR_TELEMETRY_SEND_FREQUENCY="10m" # let's send frequently
export MDB_OPERATOR_TELEMETRY_COLLECTION_FREQUENCY="1m" # let's collect as often as we can

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"
8 changes: 8 additions & 0 deletions scripts/dev/contexts/root-context
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,11 @@ export MDB_SEARCH_COMMUNITY_REPO_URL="quay.io/mongodb"
if [[ ${MDB_BASH_DEBUG:-0} == 1 ]]; then
export PS4='+(${BASH_SOURCE}:${LINENO})[^$?]: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
fi

# MCK is capable of deploying a webhook (optional).
# To do so it needs know which pods to select for routing traffic
# in the Service and operator name currently serves as a selector.
# This value must be different for multi cluster setup,
# but we can unify once we are done with unified operator
# installation for both multicluster and single cluster setups.
export OPERATOR_NAME="mongodb-kubernetes-operator"