Skip to content

Commit bd4d20e

Browse files
authored
CLOUDP-307082: Update preflight scripts (#38)
* Fixes pre-flight scripts to work with MCK images * Updates Red Hat project IDs for new images
1 parent 9ce69d1 commit bd4d20e

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

.evergreen-tasks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tasks:
1616
- func: setup_preflight
1717
- func: preflight_image
1818
vars:
19-
image_name: operator
19+
image_name: mongodb-kubernetes
2020
- func: preflight_image
2121
vars:
2222
image_name: init-appdb

scripts/preflight_images.py

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
def image_config(
2727
image: str,
2828
rh_cert_project_id: str,
29-
name_prefix: str = "mongodb-enterprise-",
30-
name_suffix: str = "-ubi",
29+
name_prefix: str = "mongodb-kubernetes-",
30+
name_suffix: str = "",
3131
) -> Tuple[str, Dict[str, str]]:
3232
args = {
3333
"registry": f"quay.io/mongodb/{name_prefix}{image}{name_suffix}",
@@ -52,37 +52,43 @@ def official_server_image(
5252
def args_for_image(image: str) -> Dict[str, str]:
5353
image_configs = [
5454
image_config(
55-
"database",
56-
"633fc9e582f7934b1ad3be45",
55+
image="database",
56+
name_suffix="",
57+
rh_cert_project_id="6809ece067e8953c22ff54fc",
5758
),
5859
official_server_image(
59-
"mongodb-enterprise-server", # official server images
60-
"643daaa56da4ecc48795693a",
60+
image="mongodb-enterprise-server", # official server images
61+
rh_cert_project_id="643daaa56da4ecc48795693a",
6162
),
6263
image_config(
63-
"init-appdb",
64-
"633fcb576f43719c9df9349f",
64+
image="init-appdb",
65+
rh_cert_project_id="6809ec113193c2e55779b8dc",
66+
name_suffix="",
6567
),
6668
image_config(
67-
"init-database",
68-
"633fcc2982f7934b1ad3be46",
69+
image="init-database",
70+
rh_cert_project_id="680a22928e2dc72376f34990",
71+
name_suffix="",
6972
),
7073
image_config(
71-
"init-ops-manager",
72-
"633fccb16f43719c9df934a0",
74+
image="init-ops-manager",
75+
rh_cert_project_id="680a247d67e8953c22000544",
76+
name_suffix="",
7377
),
7478
image_config(
75-
"operator",
76-
"633fcdfaade0e891294196ac",
79+
image="mongodb-kubernetes",
80+
rh_cert_project_id="6809ea243193c2e55779b4a5",
81+
name_prefix="",
82+
name_suffix="",
7783
),
7884
image_config(
79-
"ops-manager",
80-
"633fcd36c4ee7ff29edff589",
85+
image="ops-manager",
86+
rh_cert_project_id="633fcd36c4ee7ff29edff589",
87+
name_prefix="mongodb-enterprise-",
88+
name_suffix="-ubi",
8189
),
8290
image_config(
83-
"mongodb-agent",
84-
"633fcfd482f7934b1ad3be47",
85-
name_prefix="",
91+
image="mongodb-agent", rh_cert_project_id="633fcfd482f7934b1ad3be47", name_prefix="", name_suffix="-ubi"
8692
),
8793
]
8894
images = {k: v for k, v in image_configs}

0 commit comments

Comments
 (0)