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
# Summary
This pull request introduces a new manual pipeline for migrating and
publishing all agent images to a new registry. The main changes add
support for running this migration as a manual task in Evergreen,
including the necessary pipeline configuration, scripts, and build
variant.
**Evergreen pipeline and build variant additions:**
* Added a new `pipeline_migrate_agents` function to
`.evergreen-functions.yml`, which runs the `pipeline_migrate_agent.sh`
script for agent migration.
* Added a new `migrate_all_agents` task to `.evergreen.yml`, enabling
manual execution to build and migrate all agent images.
* Created a new `publish_agent_images_manual` build variant in
`.evergreen.yml`, allowing patch requesters to trigger the migration
task.
**Script additions for manual migration:**
* Added `scripts/release/pipeline_migrate_agent.sh` to execute the
migration logic using the main pipeline Python script, targeting the new
registry.
To trigger this task, the following command will be run
```
evergreen patch -p mongodb-kubernetes -v migrate_all_agents -t migrate_all_agents -y -f -u --browse -d "" --param evergreen_retry=false
```
## Proof of Work
This
[patch](https://spruce.mongodb.com/task/mongodb_kubernetes_publish_agent_images_manual_migrate_all_agents_patch_1e901704a46e0544f3a72cf162f602f88b0f3f63_68ac8827d932140007acd3a8_25_08_25_15_58_33/logs?execution=0)
migrates all the agents to my private
[ECR](https://us-east-1.console.aws.amazon.com/ecr/repositories/private/268558157000/lucian.tosa/mongodb-agent?region=us-east-1)
There are 17 agents in release.json. For each of them there will 4 be
images (4 architectures), 1 aggregated manifest, and one signature,
therefore 102 entries.
This
[patch](https://spruce.mongodb.com/version/68adc1ff3ffb18000795f2ee/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
ran the static tests using my private ECR registry.
## 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