Commit fd25d7e
authored
CLOUDP-295785 - copy kubectl-mongodb plugin to
# Summary
We need to make `kubectl-mongodb` available for Code Snippets tests.
Previously Code Snippets were expecting the binary in `./bin` directory,
but this logic was lost when the `kubectl-mongodb` build process was
changed.
https://github.com/mongodb/mongodb-kubernetes/blob/d40621c8126ea38cc38cfaec104fb7226430a941/scripts/evergreen/build_multi_cluster_kubeconfig_creator.sh#L38-L40
This PR brings back this copy procedure to make Code Snippets tests
work. Additionally changed the logic of `download_multi_cluster_binary`
evergreen function and now it only downloads single binary matching
platform provided - there is no need to download all platform variants.
## Proof of Work
Passing CI and run the test locally:
```
(venv) ➜ mongodb-kubernetes git:(maciejk/ar-fix-kubectl-plugin-location) ✗ scripts/dev/run_python.sh scripts/release/kubectl_mongodb/download_kubectl_plugin.py --build-scenario staging --version b478944 --platform linux/amd64
INFO 2025-10-31 13:05:44,644 [download_kubectl_plugin] Downloading s3://mongodb-kubernetes-staging/kubectl-mongodb/b4789443/kubectl-mongodb_linux_amd64 to docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_amd64
INFO 2025-10-31 13:05:46,472 [download_kubectl_plugin] Successfully downloaded artifact to docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_amd64 and bin/kubectl-mongodb
```
## Checklist
- [x] Have you linked a jira ticket and/or is the ticket in the title?
- [x] Have you checked whether your jira ticket required DOCSP changes?
- [x] Have you added changelog file?
- use `skip-changelog` label if not needed
- refer to [Changelog files and Release
Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes)
section in CONTRIBUTING.md for more details./bin/kubectl-mongodb for code snippets tests (#565)1 parent e508eec commit fd25d7e
File tree
5 files changed
+37
-16
lines changed- scripts/release/kubectl_mongodb
5 files changed
+37
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
| 529 | + | |
528 | 530 | | |
529 | 531 | | |
530 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| |||
367 | 369 | | |
368 | 370 | | |
369 | 371 | | |
| 372 | + | |
| 373 | + | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
| |||
379 | 383 | | |
380 | 384 | | |
381 | 385 | | |
| 386 | + | |
| 387 | + | |
382 | 388 | | |
383 | 389 | | |
384 | 390 | | |
| |||
391 | 397 | | |
392 | 398 | | |
393 | 399 | | |
| 400 | + | |
| 401 | + | |
394 | 402 | | |
395 | 403 | | |
396 | 404 | | |
| |||
Lines changed: 23 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| |||
74 | 85 | | |
75 | 86 | | |
76 | 87 | | |
| 88 | + | |
77 | 89 | | |
78 | | - | |
| 90 | + | |
| 91 | + | |
79 | 92 | | |
80 | 93 | | |
81 | 94 | | |
82 | 95 | | |
83 | 96 | | |
84 | 97 | | |
85 | | - | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | | - | |
| 106 | + | |
99 | 107 | | |
100 | 108 | | |
101 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
0 commit comments