Skip to content

Commit bf8256c

Browse files
authored
Merge branch 'master' into fix-scram-222
2 parents e551f2b + 3d0c8e7 commit bf8256c

File tree

97 files changed

+3211
-1102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+3211
-1102
lines changed

.evergreen-functions.yml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ functions:
392392
add_to_path:
393393
- ${workdir}/bin
394394
working_dir: src/github.com/mongodb/mongodb-kubernetes
395-
binary: scripts/evergreen/run_python.sh scripts/update_supported_dockerfiles.py
395+
binary: scripts/dev/run_python.sh scripts/update_supported_dockerfiles.py
396396
- command: subprocess.exec
397397
type: setup
398398
params:
@@ -486,7 +486,7 @@ functions:
486486
include_expansions_in_env:
487487
- image_version
488488
- rh_pyxis
489-
binary: scripts/evergreen/run_python.sh scripts/preflight_images.py --image ${image_name} --submit "${preflight_submit}"
489+
binary: scripts/dev/run_python.sh scripts/preflight_images.py --image ${image_name} --submit "${preflight_submit}"
490490

491491
build_multi_cluster_binary:
492492
- command: subprocess.exec
@@ -538,7 +538,44 @@ functions:
538538
shell: bash
539539
<<: *e2e_include_expansions_in_env
540540
working_dir: src/github.com/mongodb/mongodb-kubernetes
541-
binary: scripts/evergreen/run_python.sh pipeline.py --include ${image_name} --parallel --sign
541+
binary: scripts/dev/run_python.sh scripts/release/pipeline_main.py --parallel ${image_name}
542+
543+
# TODO: CLOUDP-335471 ; once all image builds are made with the new atomic pipeline, remove the following function
544+
legacy_pipeline:
545+
- *switch_context
546+
- command: shell.exec
547+
type: setup
548+
params:
549+
shell: bash
550+
script: |
551+
# Docker Hub workaround
552+
# docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
553+
docker buildx create --driver=docker-container --driver-opt=image=268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/moby/buildkit:buildx-stable-1 --use
554+
docker buildx inspect --bootstrap
555+
- command: ec2.assume_role
556+
display_name: Assume IAM role with permissions to pull Kondukto API token
557+
params:
558+
role_arn: ${kondukto_role_arn}
559+
- command: shell.exec
560+
display_name: Pull Kondukto API token from AWS Secrets Manager and write it to file
561+
params:
562+
silent: true
563+
shell: bash
564+
include_expansions_in_env: [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
565+
script: |
566+
set -e
567+
# use AWS CLI to get the Kondukto API token from AWS Secrets Manager
568+
kondukto_token=$(aws secretsmanager get-secret-value --secret-id "kondukto-token" --region "us-east-1" --query 'SecretString' --output text)
569+
# write the KONDUKTO_TOKEN environment variable to Silkbomb environment file
570+
echo "KONDUKTO_TOKEN=$kondukto_token" > ${workdir}/silkbomb.env
571+
- command: subprocess.exec
572+
retry_on_failure: true
573+
type: setup
574+
params:
575+
shell: bash
576+
<<: *e2e_include_expansions_in_env
577+
working_dir: src/github.com/mongodb/mongodb-kubernetes
578+
binary: scripts/dev/run_python.sh pipeline.py --include ${image_name} --parallel --sign
542579

543580
teardown_cloud_qa_all:
544581
- *switch_context
@@ -549,7 +586,7 @@ functions:
549586
working_dir: src/github.com/mongodb/mongodb-kubernetes
550587
script: |
551588
source .generated/context.export.env
552-
scripts/evergreen/run_python.sh scripts/evergreen/e2e/setup_cloud_qa.py delete_all
589+
scripts/dev/run_python.sh scripts/evergreen/e2e/setup_cloud_qa.py delete_all
553590
554591
# Updates current expansions with variables from release.json file.
555592
# Use e.g. ${mongoDbOperator} afterwards.
@@ -596,7 +633,7 @@ functions:
596633
add_to_path:
597634
- ${workdir}/bin
598635
# Below script deletes agent images created for an Evergreen patch older than 1 day
599-
command: scripts/evergreen/run_python.sh scripts/evergreen/periodic-cleanup-aws.py
636+
command: scripts/dev/run_python.sh scripts/evergreen/periodic-cleanup-aws.py
600637

601638
### Test Functions ###
602639

@@ -695,7 +732,7 @@ functions:
695732
working_dir: src/github.com/mongodb/mongodb-kubernetes
696733
script: |
697734
source .generated/context.export.env
698-
scripts/evergreen/run_python.sh scripts/evergreen/e2e/performance/create_variants.py ${variant} ${size}> evergreen_tasks.json
735+
scripts/dev/run_python.sh scripts/evergreen/e2e/performance/create_variants.py ${variant} ${size}> evergreen_tasks.json
699736
echo "tasks to run:"
700737
cat evergreen_tasks.json
701738
- command: generate.tasks

.evergreen-periodic-builds.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ variables:
2121
tasks:
2222
- name: periodic_build_operator
2323
commands:
24-
- func: pipeline
24+
- func: legacy_pipeline
2525
vars:
2626
image_name: operator-daily
2727

@@ -35,49 +35,49 @@ tasks:
3535

3636
- name: periodic_build_init_appdb
3737
commands:
38-
- func: pipeline
38+
- func: legacy_pipeline
3939
vars:
4040
image_name: init-appdb-daily
4141

4242
- name: periodic_build_init_database
4343
commands:
44-
- func: pipeline
44+
- func: legacy_pipeline
4545
vars:
4646
image_name: init-database-daily
4747

4848
- name: periodic_build_init_opsmanager
4949
commands:
50-
- func: pipeline
50+
- func: legacy_pipeline
5151
vars:
5252
image_name: init-ops-manager-daily
5353

5454
- name: periodic_build_database
5555
commands:
56-
- func: pipeline
56+
- func: legacy_pipeline
5757
vars:
5858
image_name: database-daily
5959

6060
- name: periodic_build_sbom_cli
6161
commands:
62-
- func: pipeline
62+
- func: legacy_pipeline
6363
vars:
6464
image_name: cli
6565

6666
- name: periodic_build_ops_manager_6
6767
commands:
68-
- func: pipeline
68+
- func: legacy_pipeline
6969
vars:
7070
image_name: ops-manager-6-daily
7171

7272
- name: periodic_build_ops_manager_7
7373
commands:
74-
- func: pipeline
74+
- func: legacy_pipeline
7575
vars:
7676
image_name: ops-manager-7-daily
7777

7878
- name: periodic_build_ops_manager_8
7979
commands:
80-
- func: pipeline
80+
- func: legacy_pipeline
8181
vars:
8282
image_name: ops-manager-8-daily
8383

@@ -91,15 +91,15 @@ tasks:
9191
exec_timeout_secs: 43200
9292
commands:
9393
- func: enable_QEMU
94-
- func: pipeline
94+
- func: legacy_pipeline
9595
vars:
9696
image_name: mongodb-agent-daily
9797

9898
- name: periodic_build_agent_1
9999
exec_timeout_secs: 43200
100100
commands:
101101
- func: enable_QEMU
102-
- func: pipeline
102+
- func: legacy_pipeline
103103
vars:
104104
image_name: mongodb-agent-1-daily
105105

@@ -123,19 +123,19 @@ tasks:
123123
- name: periodic_build_community_operator
124124
commands:
125125
- func: enable_QEMU
126-
- func: pipeline
126+
- func: legacy_pipeline
127127
vars:
128128
image_name: mongodb-kubernetes-operator-daily
129129

130130
- name: periodic_build_readiness_probe
131131
commands:
132-
- func: pipeline
132+
- func: legacy_pipeline
133133
vars:
134134
image_name: readinessprobe-daily
135135

136136
- name: periodic_build_version_upgrade_post_start_hook
137137
commands:
138-
- func: pipeline
138+
- func: legacy_pipeline
139139
vars:
140140
image_name: operator-version-upgrade-post-start-hook-daily
141141

.evergreen.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ include:
99
variables:
1010
- &ops_manager_60_latest 6.0.27 # The order/index is important, since these are anchors. Please do not change
1111

12-
- &ops_manager_70_latest 7.0.15 # The order/index is important, since these are anchors. Please do not change
12+
- &ops_manager_70_latest 7.0.17 # The order/index is important, since these are anchors. Please do not change
1313

14-
- &ops_manager_80_latest 8.0.11 # The order/index is important, since these are anchors. Please do not change
14+
- &ops_manager_80_latest 8.0.12 # The order/index is important, since these are anchors. Please do not change
1515

1616
# The dependency unification between static and non-static is intentional here.
1717
# Even though some images are exclusive, in EVG they all are built once and in parallel.
@@ -283,7 +283,7 @@ tasks:
283283
- func: setup_building_host
284284
- func: quay_login
285285
- func: setup_docker_sbom
286-
- func: pipeline
286+
- func: legacy_pipeline
287287
vars:
288288
image_name: operator
289289
include_tags: release
@@ -297,7 +297,7 @@ tasks:
297297
- func: setup_building_host
298298
- func: quay_login
299299
- func: setup_docker_sbom
300-
- func: pipeline
300+
- func: legacy_pipeline
301301
vars:
302302
image_name: init-appdb
303303
include_tags: release
@@ -310,7 +310,7 @@ tasks:
310310
- func: setup_building_host
311311
- func: quay_login
312312
- func: setup_docker_sbom
313-
- func: pipeline
313+
- func: legacy_pipeline
314314
vars:
315315
image_name: init-database
316316
include_tags: release
@@ -323,7 +323,7 @@ tasks:
323323
- func: setup_building_host
324324
- func: quay_login
325325
- func: setup_docker_sbom
326-
- func: pipeline
326+
- func: legacy_pipeline
327327
vars:
328328
image_name: init-ops-manager
329329
include_tags: release
@@ -336,7 +336,7 @@ tasks:
336336
- func: setup_building_host
337337
- func: quay_login
338338
- func: setup_docker_sbom
339-
- func: pipeline
339+
- func: legacy_pipeline
340340
vars:
341341
image_name: agent
342342
include_tags: release
@@ -350,7 +350,7 @@ tasks:
350350
- func: setup_building_host
351351
- func: quay_login
352352
- func: setup_docker_sbom
353-
- func: pipeline
353+
- func: legacy_pipeline
354354
vars:
355355
image_name: agent-pct
356356
include_tags: release
@@ -395,7 +395,7 @@ tasks:
395395
commands:
396396
- func: clone
397397
- func: setup_building_host
398-
- func: pipeline
398+
- func: legacy_pipeline
399399
vars:
400400
image_name: agent-pct
401401
skip_tags: release
@@ -410,7 +410,7 @@ tasks:
410410
commands:
411411
- func: clone
412412
- func: setup_building_host
413-
- func: pipeline
413+
- func: legacy_pipeline
414414
vars:
415415
image_name: agent-pct
416416
skip_tags: release
@@ -423,15 +423,15 @@ tasks:
423423
- func: build_multi_cluster_binary
424424
- func: pipeline
425425
vars:
426-
image_name: test
426+
image_name: meko-tests
427427

428428
- name: build_mco_test_image
429429
commands:
430430
- func: clone
431431
- func: setup_building_host
432432
- func: pipeline
433433
vars:
434-
image_name: mco-test
434+
image_name: mco-tests
435435

436436
- name: build_operator_ubi
437437
commands:
@@ -462,9 +462,6 @@ tasks:
462462
skip_tags: ubuntu,release
463463

464464
- name: build_agent_images_ubi
465-
depends_on:
466-
- name: build_init_database_image_ubi
467-
variant: init_test_run
468465
commands:
469466
- func: clone
470467
- func: setup_building_host
@@ -554,7 +551,7 @@ tasks:
554551
- func: setup_building_host
555552
- func: quay_login
556553
- func: setup_docker_sbom
557-
- func: pipeline
554+
- func: legacy_pipeline
558555
vars:
559556
image_name: database
560557

@@ -573,7 +570,7 @@ tasks:
573570
- func: setup_building_host
574571
- func: quay_login
575572
- func: setup_docker_sbom
576-
- func: pipeline
573+
- func: legacy_pipeline
577574
vars:
578575
image_name: ops-manager
579576
include_tags: release

0 commit comments

Comments
 (0)