Skip to content

Commit 7f864b2

Browse files
authored
CLOUDP-295785 - re-add release tasks for readiness-probe and version-upgrade-hook (#463)
# Summary This PR is re-adding release tasks for `readinessprobe` and `version-upgrade-post-start-hook`. It is also bumping `readinessprobe` to `1.0.23` and `version-upgrade-post-start-hook` to `1.0.10`. Next time when we are going to release the operator the `readinessprobe` and `version-upgrade-post-start-hook` are also going to be released, if the version was incremented. The new `skip-if-exists` flag in `build_info.json` makes sure we don't overwrite the tag if it already exists. The pre-commit hook was run to update the `readinessprobe` to `1.0.23` and `version-upgrade-post-start-hook` to `1.0.10`. This was based only on updating `release.json` respective values and running pre-commit script updated logic. The `mongodb-community-operator/conifg/` directory contained unused .yaml files that were also referencing `readinessprobe` and `version-upgrade-post-start-hook` - those I deleted. The `mongodb-community-operator/conifg/samples/` were moved to `public/samples/community/`. ## Proof of Work Triggered release job -> https://spruce.mongodb.com/version/68ca8a70f93aab0007c723d3/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC ...which pushes them to quay with `-rc` suffix: - `quay.io/mongodb/mongodb-<REDACTED:macos_notary_keyid>-version-upgrade-post-start-hook:1.0.10-rc@sha256:082df2395b5a8ee4c89053a098b8b7b021b0cc5313d2090a2048e29aa13ffaea` - `quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.23-rc@sha256:85c0257d3f63921509878543db8aa91f53cdee1db8ce5e380984da60b9642dae` In the subsequent [run](https://spruce.mongodb.com/version/68cac45d8e609100074a86be/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC) the images were skipped as expected: ``` [2025/09/17 16:27:33.509] INFO 2025-09-17 14:27:33,509 [atomic_pipeline] Image with tag quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.23-rc already exists. Skipping it. [2025/09/17 16:27:33.509] INFO 2025-09-17 14:27:33,509 [atomic_pipeline] All specified image tags already exist. Skipping build. ``` ## 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
1 parent 0c4b15a commit 7f864b2

File tree

58 files changed

+106
-995
lines changed

Some content is hidden

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

58 files changed

+106
-995
lines changed

.evergreen-functions.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ variables:
4646
- RELEASE_INITIAL_VERSION
4747
- RELEASE_INITIAL_COMMIT_SHA
4848
- OPERATOR_VERSION
49+
- READINESS_PROBE_VERSION
50+
- VERSION_UPGRADE_HOOK_VERSION
4951
- BUILD_SCENARIO
5052

5153
functions:

.evergreen-release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,24 @@ tasks:
7070
vars:
7171
IMAGE_NAME: database
7272

73+
- name: release_readiness_probe
74+
tags: [ "image_release" ]
75+
allowed_requesters: [ "patch", "github_tag" ]
76+
commands:
77+
- func: clone
78+
- func: setup_building_host
79+
- func: quay_login
80+
- func: pipeline_readiness_probe
81+
82+
- name: release_version_upgrade_hook
83+
tags: [ "image_release" ]
84+
allowed_requesters: [ "patch", "github_tag" ]
85+
commands:
86+
- func: clone
87+
- func: setup_building_host
88+
- func: quay_login
89+
- func: pipeline_version_upgrade_hook
90+
7391
- name: prepare_and_upload_openshift_bundles
7492
tags: [ "openshift_bundles" ]
7593
allowed_requesters: [ "patch", "github_tag" ]
@@ -121,6 +139,8 @@ buildvariants:
121139
- name: release_init_database
122140
- name: release_init_ops_manager
123141
- name: release_database
142+
- name: release_readiness_probe
143+
- name: release_version_upgrade_hook
124144

125145
- name: preflight_release_images
126146
display_name: preflight_release_images

build_info.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
"release": {
222222
"sign": true,
223223
"olm-tag": true,
224+
"skip-if-exists": true,
224225
"repositories": [
225226
"quay.io/mongodb/mongodb-kubernetes-readinessprobe"
226227
],
@@ -250,6 +251,7 @@
250251
"release": {
251252
"sign": true,
252253
"olm-tag": true,
254+
"skip-if-exists": true,
253255
"repositories": ["quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook"],
254256
"platforms": [
255257
"linux/arm64",

config/manager/manager.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ spec:
112112
- name: MDB_COMMUNITY_AGENT_IMAGE
113113
value: "quay.io/mongodb/mongodb-agent:108.0.2.8729-1"
114114
- name: VERSION_UPGRADE_HOOK_IMAGE
115-
value: "quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.9"
115+
value: "quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.10"
116116
- name: READINESS_PROBE_IMAGE
117-
value: "quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.22"
117+
value: "quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.23"
118118
- name: MDB_COMMUNITY_IMAGE
119119
value: "mongodb-community-server"
120120
- name: MDB_COMMUNITY_REPO_URL

helm_chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ agent:
149149
# This is only used by the MongoDBCommunity resource reconciler - START
150150
versionUpgradeHook:
151151
name: mongodb-kubernetes-operator-version-upgrade-post-start-hook
152-
version: 1.0.9
152+
version: 1.0.10
153153
readinessProbe:
154154
name: mongodb-kubernetes-readinessprobe
155-
version: 1.0.22
155+
version: 1.0.23
156156
# This is only used by the MongoDBCommunity resource reconciler - END
157157

158158
# This is used by AppDB and by static containers to determine the image that the operator uses for databases.

0 commit comments

Comments
 (0)