Skip to content

Commit 3aa3fce

Browse files
committed
Merge branch 'master' into e2e-tests-on-published-chart
2 parents 829393f + 0af0efd commit 3aa3fce

32 files changed

+702
-864
lines changed

.evergreen-functions.yml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -515,16 +515,13 @@ functions:
515515
- command: subprocess.exec
516516
params:
517517
working_dir: src/github.com/mongodb/mongodb-kubernetes
518-
binary: scripts/dev/run_python.sh scripts/release/kubectl_mongodb/python/build_kubectl_plugin.py
519-
520-
build_and_push_appdb_database:
518+
binary: scripts/release/kubectl_mongodb/build_kubectl_plugin.sh
519+
520+
download_multi_cluster_binary:
521521
- command: subprocess.exec
522522
params:
523-
working_dir: src/github.com/mongodb/mongodb-kubernetes/docker/mongodb-kubernetes-appdb-database
524-
binary: ./build_and_push_appdb_database_images.sh
525-
add_to_path:
526-
- ${workdir}/bin
527-
- ${workdir}
523+
working_dir: src/github.com/mongodb/mongodb-kubernetes
524+
binary: scripts/release/kubectl_mongodb/download_kubectl_plugin.sh
528525

529526
build_test_image_ibm:
530527
- command: subprocess.exec
@@ -801,22 +798,6 @@ functions:
801798
script: |
802799
./scripts/code_snippets/tests/${task_name}
803800
804-
#
805-
# kubectl mongodb plugin release functions
806-
#
807-
install_goreleaser:
808-
- command: shell.exec
809-
type: setup
810-
include_expansions_in_env:
811-
- goreleaser_pro_tar_gz
812-
params:
813-
script: |
814-
set -Eeu pipefail
815-
curl -fL "${goreleaser_pro_tar_gz}" --output goreleaser_Linux_x86_64.tar.gz
816-
tar -xf goreleaser_Linux_x86_64.tar.gz
817-
chmod 755 ./goreleaser
818-
sudo cp goreleaser /usr/local/bin/
819-
820801
install_macos_notarization_service:
821802
- command: shell.exec
822803
type: setup
@@ -851,7 +832,7 @@ functions:
851832
- command: github.generate_token
852833
params:
853834
expansion_name: GH_TOKEN
854-
- command: shell.exec
835+
- command: subprocess.exec
855836
type: setup
856837
params:
857838
working_dir: src/github.com/mongodb/mongodb-kubernetes
@@ -868,10 +849,7 @@ functions:
868849
- triggered_by_git_tag
869850
- OPERATOR_VERSION
870851
env:
871-
XDG_CONFIG_HOME: ${go_base_path}${workdir}
872-
GO111MODULE: "on"
873-
GOROOT: "/opt/golang/go1.24"
874852
MACOS_NOTARY_KEY: ${macos_notary_keyid}
875853
MACOS_NOTARY_SECRET: ${macos_notary_secret}
876854
GH_TOKEN: ${GH_TOKEN}
877-
script: scripts/dev/run_python.sh scripts/release/kubectl_mongodb/python/promote_kubectl_plugin.py
855+
binary: scripts/dev/run_python.sh scripts/release/kubectl_mongodb/promote_kubectl_plugin.py

.evergreen-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tasks:
99
commands:
1010
- func: clone
1111
- func: setup_building_host
12-
- func: build_multi_cluster_binary
12+
- func: download_multi_cluster_binary
1313
- func: pipeline
1414
vars:
1515
image_name: meko-tests
@@ -123,9 +123,8 @@ tasks:
123123
tags: [ "binary_release" ]
124124
commands:
125125
- func: clone
126-
- func: install_goreleaser
127-
- func: install_macos_notarization_service
128126
- func: python_venv
127+
- func: install_macos_notarization_service
129128
- func: release_kubectl_mongodb_plugin
130129

131130
- name: create_chart_release_pr
@@ -134,7 +133,7 @@ tasks:
134133
- func: clone
135134
- func: python_venv
136135
- func: create_chart_release_pr
137-
136+
138137
- name: release_chart_to_oci_registry
139138
tags: [ "release_chart_to_oci_registry" ]
140139
commands:
@@ -224,6 +223,9 @@ buildvariants:
224223
allowed_requesters: [ "patch", "github_tag" ]
225224
run_on:
226225
- release-ubuntu2404-small # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
226+
depends_on:
227+
- name: release_kubectl_mongodb_plugin
228+
variant: release_kubectl_mongodb_plugin
227229
tasks:
228230
- name: build_test_image_for_smoke_tests
229231

@@ -250,6 +252,8 @@ buildvariants:
250252
depends_on:
251253
- name: "*"
252254
variant: release_images
255+
- name: "*"
256+
variant: init_smoke_tests
253257
tasks:
254258
- name: e2e_smoke_task_group
255259

.evergreen-snippets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ variables:
77
- func: setup_mongosh
88
- func: download_kube_tools
99
- func: switch_context
10-
- func: build_multi_cluster_binary
10+
- func: download_multi_cluster_binary
1111
teardown_task:
1212
- func: upload_e2e_logs
1313
- func: upload_code_snippets_logs

.evergreen.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ variables:
8686
- func: clone
8787
- func: switch_context
8888
- func: setup_building_host_minikube
89-
- func: install_goreleaser
90-
- func: build_multi_cluster_binary
9189

9290
- &setup_group_multi_cluster
9391
setup_group_can_fail_task: true
@@ -96,8 +94,6 @@ variables:
9694
- func: download_kube_tools
9795
- func: switch_context
9896
- func: setup_building_host
99-
- func: install_goreleaser
100-
- func: build_multi_cluster_binary
10197

10298
- &setup_and_teardown_task_cloudqa
10399
setup_task_can_fail_task: true
@@ -352,12 +348,17 @@ tasks:
352348
image_name: agent
353349
flags: "--parallel --current-agents --skip-if-exists=false"
354350

355-
- name: build_test_image
351+
- name: build_kubectl_mongodb_plugin
356352
commands:
357353
- func: clone
358354
- func: setup_building_host
359-
- func: install_goreleaser
360355
- func: build_multi_cluster_binary
356+
357+
- name: build_test_image
358+
commands:
359+
- func: clone
360+
- func: setup_building_host
361+
- func: download_multi_cluster_binary
361362
- func: pipeline
362363
vars:
363364
image_name: meko-tests
@@ -366,8 +367,7 @@ tasks:
366367
commands:
367368
- func: clone
368369
- func: setup_building_host
369-
- func: install_goreleaser
370-
- func: build_multi_cluster_binary
370+
- func: download_multi_cluster_binary
371371
- func: pipeline
372372
vars:
373373
image_name: meko-tests-arm64
@@ -384,8 +384,7 @@ tasks:
384384
add_to_path:
385385
- ${workdir}/bin
386386
command: scripts/evergreen/setup_minikube_host.sh
387-
- func: install_goreleaser
388-
- func: build_multi_cluster_binary
387+
- func: download_multi_cluster_binary
389388
- func: build_test_image_ibm
390389

391390
- name: build_mco_test_image
@@ -1510,9 +1509,6 @@ buildvariants:
15101509
variant: init_test_run
15111510
- name: build_test_image_arm
15121511
variant: init_test_run_arm
1513-
# TODO: Re-enable when staging is added to pipeline
1514-
# https://jira.mongodb.org/browse/CLOUDP-349096
1515-
disable: true
15161512
tasks:
15171513
- name: e2e_smoke_arm_task_group
15181514

@@ -1529,9 +1525,6 @@ buildvariants:
15291525
variant: init_test_run
15301526
- name: build_test_image_arm
15311527
variant: init_test_run_arm
1532-
# TODO: Re-enable when staging is added to pipeline
1533-
# https://jira.mongodb.org/browse/CLOUDP-349096
1534-
disable: true
15351528
tasks:
15361529
- name: e2e_smoke_arm_task_group
15371530

@@ -1727,6 +1720,8 @@ buildvariants:
17271720
- name: build_operator_ubi
17281721
- name: build_operator_race_ubi
17291722
- name: build_test_image
1723+
depends_on:
1724+
- name: build_kubectl_mongodb_plugin
17301725
- name: build_mco_test_image
17311726
- name: build_init_appdb_images_ubi
17321727
- name: build_init_om_images_ubi
@@ -1735,6 +1730,7 @@ buildvariants:
17351730
- name: build_agent_images_ubi
17361731
- name: build_readiness_probe_image
17371732
- name: build_version_upgrade_hook_image
1733+
- name: build_kubectl_mongodb_plugin
17381734
- name: prepare_aws
17391735
- name: publish_helm_chart
17401736

@@ -1748,6 +1744,9 @@ buildvariants:
17481744
run_on:
17491745
- rhel9-power-small
17501746
- rhel9-power-large
1747+
depends_on:
1748+
- name: build_kubectl_mongodb_plugin
1749+
variant: init_test_run
17511750
tasks:
17521751
- name: build_test_image_ibm
17531752

@@ -1761,6 +1760,9 @@ buildvariants:
17611760
run_on:
17621761
- rhel9-zseries-small
17631762
- rhel9-zseries-large
1763+
depends_on:
1764+
- name: build_kubectl_mongodb_plugin
1765+
variant: init_test_run
17641766
tasks:
17651767
- name: build_test_image_ibm
17661768

@@ -1770,6 +1772,9 @@ buildvariants:
17701772
tags: [ "staging" ]
17711773
run_on:
17721774
- ubuntu2204-arm64-small
1775+
depends_on:
1776+
- name: build_kubectl_mongodb_plugin
1777+
variant: init_test_run
17731778
tasks:
17741779
- name: build_test_image_arm
17751780

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ logs-debug/
8989
docs/**/log/*
9090
docs/**/test.sh.run.log
9191

92-
# goreleaser generated files
93-
dist
9492
logs
9593
*.run.log
9694

.goreleaser.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ build-and-push-operator-image: aws_login
159159
build-and-push-database-image: aws_login
160160
@ scripts/dev/build_push_database_image
161161

162-
build-and-push-test-image: aws_login build-multi-cluster-binary
162+
build-and-push-test-image: aws_login
163163
@ if [[ -z "$(local)" ]]; then \
164164
scripts/dev/run_python.sh scripts/release/pipeline.py test; \
165165
fi
@@ -169,9 +169,6 @@ build-and-push-mco-test-image: aws_login
169169
scripts/dev/run_python.sh scripts/release/pipeline.py mco-test; \
170170
fi
171171

172-
build-multi-cluster-binary:
173-
scripts/evergreen/build_multi_cluster_kubeconfig_creator.sh
174-
175172
# builds all app images in parallel
176173
# note that we cannot build both appdb and database init images in parallel as they change the same docker file
177174
build-and-push-images: build-and-push-operator-image appdb-init-image om-init-image database operator-image database-init-image

build_info.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,14 @@
356356
]
357357
},
358358
"staging": {
359-
"sign": false,
360359
"s3-store": "mongodb-kubernetes-staging",
361360
"platforms": [
362361
"darwin/amd64",
363362
"darwin/arm64",
364363
"linux/amd64",
365-
"linux/arm64"
364+
"linux/arm64",
365+
"linux/s390x",
366+
"linux/ppc64le"
366367
]
367368
},
368369
"release": {
@@ -372,7 +373,9 @@
372373
"darwin/amd64",
373374
"darwin/arm64",
374375
"linux/amd64",
375-
"linux/arm64"
376+
"linux/arm64",
377+
"linux/s390x",
378+
"linux/ppc64le"
376379
]
377380
}
378381
}

0 commit comments

Comments
 (0)