Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .evergreen-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,17 @@ functions:
- ${workdir}/bin
binary: scripts/evergreen/e2e/build_tests_image_ibm.sh

pipeline_migrate_agents:
- *switch_context
- command: subprocess.exec
retry_on_failure: false
type: setup
params:
shell: bash
<<: *e2e_include_expansions_in_env
working_dir: src/github.com/mongodb/mongodb-kubernetes
binary: scripts/release/pipeline_migrate_agent.sh

pipeline:
- *switch_context
- command: subprocess.exec
Expand Down
17 changes: 17 additions & 0 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,15 @@ tasks:
image_name: agent
build_scenario: --build-scenario manual_release

- name: migrate_all_agents
# this enables us to run this variant manually to build all the agents for the new registry
allowed_requesters: [ "patch" ]
commands:
- func: clone
- func: setup_building_host
- func: quay_login
- func: pipeline_migrate_agents

- name: run_precommit_and_push
tags: ["patch-run"]
commands:
Expand Down Expand Up @@ -2097,3 +2106,11 @@ buildvariants:
tasks:
- name: publish_ops_manager
- name: release_agent

- name: publish_agent_images_manual
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the variant name doesn't match the task its running

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed it now

display_name: publish_agent_images_manual
allowed_requesters: [ "patch" ]
run_on:
- ubuntu2204-large
tasks:
- name: migrate_all_agents
2 changes: 0 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ spec:
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.2.0"
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_2_0
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.2.0"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1
Expand Down
1 change: 0 additions & 1 deletion helm_chart/values-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ relatedImages:
- 8.0.0-ubi8
- 8.0.0-ubi9
agent:
- 107.0.11.8645-1
- 107.0.12.8669-1
- 107.0.13.8702-1
- 107.0.15.8741-1
Expand Down
2 changes: 0 additions & 2 deletions public/mongodb-kubernetes-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,6 @@ spec:
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.2.0"
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_2_0
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.2.0"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1
Expand Down
4 changes: 0 additions & 4 deletions release.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@
"agent_version": "12.0.35.7911-1",
"tools_version": "100.10.0"
},
"7.0.11": {
"agent_version": "107.0.11.8645-1",
"tools_version": "100.10.0"
},
"7.0.12": {
"agent_version": "107.0.12.8669-1",
"tools_version": "100.10.0"
Expand Down
10 changes: 10 additions & 0 deletions scripts/dev/contexts/publish_agent_images_manual
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -Eeou pipefail

script_name=$(readlink -f "${BASH_SOURCE[0]}")
script_dir=$(dirname "${script_name}")

source "${script_dir}/root-context"

export preflight_submit=true
2 changes: 1 addition & 1 deletion scripts/dev/contexts/variables/om60
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export CUSTOM_OM_VERSION
export CUSTOM_MDB_VERSION=6.0.21
export CUSTOM_MDB_PREV_VERSION=5.0.7

export AGENT_VERSION=12.0.33.7866-1
export AGENT_VERSION=12.0.35.7911-1
export AGENT_IMAGE="${MDB_AGENT_IMAGE_REPOSITORY}:${AGENT_VERSION}"

export CUSTOM_APPDB_VERSION=6.0.21-ent
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev/contexts/variables/om70
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export CUSTOM_OM_VERSION
export CUSTOM_MDB_VERSION=7.0.18
export CUSTOM_MDB_PREV_VERSION=6.0.21

export AGENT_VERSION=107.0.11.8645-1
export AGENT_VERSION=107.0.17.8771-1
export AGENT_IMAGE="${MDB_AGENT_IMAGE_REPOSITORY}:${AGENT_VERSION}"

export CUSTOM_APPDB_VERSION=7.0.18-ent
Expand Down
8 changes: 8 additions & 0 deletions scripts/release/pipeline_migrate_agent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -Eeou pipefail

scripts/dev/run_python.sh scripts/release/pipeline_main.py --parallel agent \
--all-agents \
--build-scenario manual_release \
-r quay.io/mongodb/mongodb-agent