-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
K8SPSMDB-778: Delete repset and its components properly (#1306)
* Update getting replset pods. * Logs * Improve getting stateful sets for removal. * logs * Fix getting removed sts. * fix component check * Cleanup * Fix cr.yaml * WIP: update data-sharded test * Fix removing. * Update test. * Update e2e-tests/data-sharded/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Updated data-sharded test. * Update e2e-tests/data-sharded/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update e2e-tests/data-sharded/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update e2e-tests/data-sharded/run Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * User replset label rather then extracting it from the name. * increse timeout * Refactor and fix lint error. * fix split-horizon test --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Viacheslav Sarzhan <[email protected]>
- Loading branch information
1 parent
9340bef
commit 5b31035
Showing
13 changed files
with
229 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ sleep 15 | |
|
||
set -o xtrace | ||
|
||
run_mongo "rs.conf().members.map(function(member) { return member.horizons })" \ | ||
run_mongo "rs.conf().members.map(function(member) { return member.horizons }).sort((a, b) => a.external.localeCompare(b.external))" \ | ||
"clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" \ | ||
mongodb "" "--quiet" >${tmp_dir}/horizons-3.json | ||
diff $test_dir/compare/horizons-3.json $tmp_dir/horizons-3.json | ||
|
@@ -78,7 +78,7 @@ kubectl_bin patch psmdb ${cluster} \ | |
wait_for_running "${cluster}-rs0" 5 | ||
wait_cluster_consistency ${cluster} | ||
|
||
run_mongo "rs.conf().members.map(function(member) { return member.horizons })" \ | ||
run_mongo "rs.conf().members.map(function(member) { return member.horizons }).sort((a, b) => a.external.localeCompare(b.external))" \ | ||
"clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" \ | ||
mongodb "" "--quiet" >${tmp_dir}/horizons-5.json | ||
diff $test_dir/compare/horizons-5.json $tmp_dir/horizons-5.json | ||
|
@@ -89,7 +89,7 @@ kubectl_bin patch psmdb ${cluster} \ | |
wait_for_running "${cluster}-rs0" 3 | ||
wait_cluster_consistency ${cluster} | ||
|
||
run_mongo "rs.conf().members.map(function(member) { return member.horizons })" \ | ||
run_mongo "rs.conf().members.map(function(member) { return member.horizons }).sort((a, b) => a.external.localeCompare(b.external))" \ | ||
"clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" \ | ||
mongodb "" "--quiet" >${tmp_dir}/horizons.json | ||
diff $test_dir/compare/horizons-3.json $tmp_dir/horizons-3.json | ||
|
@@ -98,4 +98,4 @@ apply_cluster ${test_dir}/conf/${cluster}.yml | |
wait_for_running "${cluster}-rs0" 3 | ||
wait_cluster_consistency ${cluster} | ||
|
||
destroy ${namespace} | ||
destroy ${namespace} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.