Skip to content

Commit 8a8ddc1

Browse files
authored
Add a default value for OPERATOR_NAME env var (#248)
In #222 we made `OPERATOR_NAME` env var required and it breaks local development workflows. This change adds a default value for `OPERATOR_NAME` env var into appropriate context files.
1 parent 27640f9 commit 8a8ddc1

10 files changed

+79
-0
lines changed

scripts/dev/contexts/e2e_multi_cluster_2_clusters

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ export test_pod_cluster=kind-e2e-cluster-1
1515
export TEST_POD_CLUSTER=kind-e2e-cluster-1
1616
export ops_manager_version="cloud_qa"
1717

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

scripts/dev/contexts/e2e_multi_cluster_kind

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ export CENTRAL_CLUSTER=kind-e2e-operator
1515
export TEST_POD_CLUSTER=kind-e2e-cluster-1
1616
export test_pod_cluster=kind-e2e-cluster-1
1717
export ops_manager_version="cloud_qa"
18+
19+
# MCK is capable of deploying a webhook (optional).
20+
# To do so it needs know which pods to select for routing traffic
21+
# in the Service and operator name currently serves as a selector.
22+
# This value must be different for multi cluster setup,
23+
# but we can unify once we are done with unified operator
24+
# installation for both multicluster and single cluster setups.
25+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

scripts/dev/contexts/e2e_multi_cluster_om_appdb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ export CENTRAL_CLUSTER=kind-e2e-cluster-1
2020
export TEST_POD_CLUSTER=kind-e2e-cluster-1
2121
export test_pod_cluster=kind-e2e-cluster-1
2222
export ops_manager_version="${CUSTOM_OM_VERSION}"
23+
24+
# MCK is capable of deploying a webhook (optional).
25+
# To do so it needs know which pods to select for routing traffic
26+
# in the Service and operator name currently serves as a selector.
27+
# This value must be different for multi cluster setup,
28+
# but we can unify once we are done with unified operator
29+
# installation for both multicluster and single cluster setups.
30+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

scripts/dev/contexts/e2e_multi_cluster_om_operator_not_in_mesh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ export CENTRAL_CLUSTER=kind-e2e-operator
1515
export test_pod_cluster=kind-e2e-cluster-1
1616
export TEST_POD_CLUSTER=kind-e2e-cluster-1
1717
export ops_manager_version="${CUSTOM_OM_VERSION}"
18+
19+
# MCK is capable of deploying a webhook (optional).
20+
# To do so it needs know which pods to select for routing traffic
21+
# in the Service and operator name currently serves as a selector.
22+
# This value must be different for multi cluster setup,
23+
# but we can unify once we are done with unified operator
24+
# installation for both multicluster and single cluster setups.
25+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

scripts/dev/contexts/e2e_static_multi_cluster_2_clusters

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@ export ops_manager_version="cloud_qa"
1616

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

scripts/dev/contexts/e2e_static_multi_cluster_kind

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

scripts/dev/contexts/e2e_static_multi_cluster_om_appdb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,11 @@ export MDB_DEFAULT_ARCHITECTURE=static
2424

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

scripts/dev/contexts/manual_telemetry_multi_cluster_dev

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

scripts/dev/contexts/manual_telemetry_multi_cluster_prod

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

scripts/dev/contexts/root-context

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

0 commit comments

Comments
 (0)