You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLOUDP-295785 - copy kubectl-mongodb plugin to ./bin/kubectl-mongodb for code snippets tests (#565)
# 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
0 commit comments