Skip to content

Commit de9dd05

Browse files
committed
wip
1 parent fe7dad7 commit de9dd05

File tree

8 files changed

+32
-3
lines changed

8 files changed

+32
-3
lines changed

.githooks/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ function check_incorrect_makefile_variable_brackets() {
148148
fi
149149
}
150150

151+
function validate_snippets() {
152+
scripts/code_snippets/validate_snippets.py
153+
}
154+
151155
function pre_commit() {
156+
validate_snippets | prepend "validate_snippets"
157+
152158
if [[ "${MDB_UPDATE_LICENSES:-""}" == "true" ]]; then
153159
( (time update_licenses) 2>&1 | prepend "update_licenses" ) &
154160
fi

scripts/code_snippets/sample_commit_output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [[ "${CODE_SNIPPETS_COMMIT_OUTPUT:-"false"}" == "true" ]]; then
1313
git add scripts/code_snippets/tests/outputs/test_*
1414
git commit -m "Update code snippets outputs"
1515
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}"
1717
else
1818
echo "Not pushing output files"
1919
fi

scripts/code_snippets/validate_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def verify_snippets_files_are_unique():
5454
print()
5555

5656
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.")
5858
return False
5959
else:
60-
print("All snippet files have unique names across directories.")
60+
print("OK - all snippets have unique names across directories.")
6161
return True
6262

6363

scripts/dev/contexts/e2e_mdb_community

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ source "${script_dir}/variables/mongodb_latest"
1010

1111
# This variable is needed otherwise the `fetch_om_information.sh` script is called and fails the test
1212
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"

scripts/dev/contexts/e2e_mdb_kind_ubi_cloudqa

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ export CUSTOM_OM_VERSION
1616

1717
export CUSTOM_MDB_VERSION=6.0.5
1818
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"

scripts/dev/contexts/e2e_static_mdb_kind_ubi_cloudqa

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ export CUSTOM_OM_VERSION
1717

1818
export CUSTOM_MDB_PREV_VERSION=6.0.16
1919
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"

scripts/dev/contexts/private_kind_code_snippets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ script_name=$(readlink -f "${BASH_SOURCE[0]}")
88
script_dir=$(dirname "${script_name}")
99

1010
source "${script_dir}/root-context"
11+
source "${script_dir}/e2e_mdb_community"
1112

1213
export NAMESPACE=mongodb
1314
export CODE_SNIPPETS_FLAVOR=e2e_private
15+
16+
export ops_manager_version="cloud_qa"

scripts/funcs/operator_deployment

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ get_operator_helm_values() {
3434
"operator.telemetry.send.enabled=${MDB_OPERATOR_TELEMETRY_SEND_ENABLED:-false}"
3535
# lets collect and save in the configmap as frequently as we can
3636
"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}"
3740
)
3841

3942
if [[ "${MDB_OPERATOR_TELEMETRY_INSTALL_CLUSTER_ROLE_INSTALLATION:-}" != "" ]]; then

0 commit comments

Comments
 (0)