File tree Expand file tree Collapse file tree 8 files changed +32
-3
lines changed Expand file tree Collapse file tree 8 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,13 @@ function check_incorrect_makefile_variable_brackets() {
148
148
fi
149
149
}
150
150
151
+ function validate_snippets() {
152
+ scripts/code_snippets/validate_snippets.py
153
+ }
154
+
151
155
function pre_commit() {
156
+ validate_snippets | prepend " validate_snippets"
157
+
152
158
if [[ " ${MDB_UPDATE_LICENSES:- " " } " == " true" ]]; then
153
159
( (time update_licenses) 2>&1 | prepend " update_licenses" ) &
154
160
fi
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ if [[ "${CODE_SNIPPETS_COMMIT_OUTPUT:-"false"}" == "true" ]]; then
13
13
git add scripts/code_snippets/tests/outputs/test_*
14
14
git commit -m " Update code snippets outputs"
15
15
git remote set-url origin " https://x-access-token:${GH_TOKEN} @github.com/mongodb/mongodb-kubernetes.git"
16
- git push origin " ${branch} "
16
+ # git push origin "${branch}"
17
17
else
18
18
echo " Not pushing output files"
19
19
fi
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ def verify_snippets_files_are_unique():
54
54
print ()
55
55
56
56
if duplicates_found :
57
- print ("Please rename duplicate files to ensure uniqueness across all snippet directories." )
57
+ print ("Failure - please rename duplicate files to ensure uniqueness across all snippet directories." )
58
58
return False
59
59
else :
60
- print ("All snippet files have unique names across directories." )
60
+ print ("OK - all snippets have unique names across directories." )
61
61
return True
62
62
63
63
Original file line number Diff line number Diff line change @@ -10,3 +10,12 @@ source "${script_dir}/variables/mongodb_latest"
10
10
11
11
# This variable is needed otherwise the `fetch_om_information.sh` script is called and fails the test
12
12
export OM_EXTERNALLY_CONFIGURED=" true"
13
+
14
+ # Temporary development images built from mongot master
15
+ # export MDB_SEARCH_COMMUNITY_VERSION="776d43523d185b6b234289e17c191712a3e6569b" # master
16
+ # export MDB_SEARCH_COMMUNITY_VERSION="d6884ae132aab30497af55dbaff05e8274e9775f" # Local->Admin
17
+ # export MDB_SEARCH_COMMUNITY_VERSION="ad8acf5c3a045d6e0306ad67d61fcb5be40f57ae" # hardcoded mdbc-rs replicaset name
18
+ # export MDB_SEARCH_COMMUNITY_VERSION="b9b80915f5571bfa5fc2aa70acb20d784e68d79b" # hardcoded Local->Admin, handled replicaSetName in config
19
+ export MDB_SEARCH_COMMUNITY_VERSION=" fbd60fb055dd500058edcb45677ea85d19421f47" # Nolan's fixes
20
+ export MDB_SEARCH_COMMUNITY_NAME=" mongot/community"
21
+ export MDB_SEARCH_COMMUNITY_REPO_URL=" 268558157000.dkr.ecr.eu-west-1.amazonaws.com"
Original file line number Diff line number Diff line change @@ -16,3 +16,7 @@ export CUSTOM_OM_VERSION
16
16
17
17
export CUSTOM_MDB_VERSION=6.0.5
18
18
export CUSTOM_MDB_PREV_VERSION=5.0.7
19
+
20
+ export MDB_SEARCH_COMMUNITY_VERSION=" fbd60fb055dd500058edcb45677ea85d19421f47" # Nolan's fixes
21
+ export MDB_SEARCH_COMMUNITY_NAME=" mongot/community"
22
+ export MDB_SEARCH_COMMUNITY_REPO_URL=" 268558157000.dkr.ecr.eu-west-1.amazonaws.com"
Original file line number Diff line number Diff line change @@ -17,3 +17,7 @@ export CUSTOM_OM_VERSION
17
17
18
18
export CUSTOM_MDB_PREV_VERSION=6.0.16
19
19
export CUSTOM_MDB_VERSION=7.0.5
20
+
21
+ export MDB_SEARCH_COMMUNITY_VERSION=" fbd60fb055dd500058edcb45677ea85d19421f47" # Nolan's fixes
22
+ export MDB_SEARCH_COMMUNITY_NAME=" mongot/community"
23
+ export MDB_SEARCH_COMMUNITY_REPO_URL=" 268558157000.dkr.ecr.eu-west-1.amazonaws.com"
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ script_name=$(readlink -f "${BASH_SOURCE[0]}")
8
8
script_dir=$( dirname " ${script_name} " )
9
9
10
10
source " ${script_dir} /root-context"
11
+ source " ${script_dir} /e2e_mdb_community"
11
12
12
13
export NAMESPACE=mongodb
13
14
export CODE_SNIPPETS_FLAVOR=e2e_private
15
+
16
+ export ops_manager_version=" cloud_qa"
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ get_operator_helm_values() {
34
34
" operator.telemetry.send.enabled=${MDB_OPERATOR_TELEMETRY_SEND_ENABLED:- false} "
35
35
# lets collect and save in the configmap as frequently as we can
36
36
" operator.telemetry.collection.frequency=${MDB_OPERATOR_TELEMETRY_COLLECTION_FREQUENCY:- 1m} "
37
+ " search.community.repo=${MDB_SEARCH_COMMUNITY_REPO_URL} "
38
+ " search.community.name=${MDB_SEARCH_COMMUNITY_NAME} "
39
+ " search.community.version=${MDB_SEARCH_COMMUNITY_VERSION} "
37
40
)
38
41
39
42
if [[ " ${MDB_OPERATOR_TELEMETRY_INSTALL_CLUSTER_ROLE_INSTALLATION:- } " != " " ]]; then
You can’t perform that action at this time.
0 commit comments