Skip to content

Conversation

MaciejKaras
Copy link
Collaborator

@MaciejKaras MaciejKaras commented Aug 14, 2025

Summary

Because we are not pushing Dockerfiles to S3 for operator related images, I needed to remove them from SUPPORTED_IMAGES. SUPPORTED_IMAGES currently only contains:

SUPPORTED_IMAGES = (
    "mongodb-agent",
    "mongodb-enterprise-ops-manager",
)

because they are still build using legacy pipeline.py that sends them to S3. All other Dockerfiles need to be added manually during release or stop adding them to public/dockerfiles/ anymore and add them for example as GitHub assets during release.

This PR also:

  • fixes recurrency in the script
  • adds missing images for 1.2.0 release and agent + om from recent bump

Proof of Work

Passing script before:

(venv) ➜  mongodb-kubernetes git:(master) ✗ scripts/dev/run_python.sh -m scripts.update_supported_dockerfiles
Image: mongodb-agent
* 107.0.11.8645-1 - ubi: public/dockerfiles/mongodb-agent/107.0.11.8645-1/ubi/Dockerfile
* 107.0.12.8669-1 - ubi: public/dockerfiles/mongodb-agent/107.0.12.8669-1/ubi/Dockerfile
* 107.0.13.8702-1 - ubi: public/dockerfiles/mongodb-agent/107.0.13.8702-1/ubi/Dockerfile
* 107.0.15.8741-1 - ubi: public/dockerfiles/mongodb-agent/107.0.15.8741-1/ubi/Dockerfile
* 107.0.17.8771-1 - ubi: public/dockerfiles/mongodb-agent/107.0.17.8771-1/ubi/Dockerfile
* 108.0.0.8694-1 - ubi: public/dockerfiles/mongodb-agent/108.0.0.8694-1/ubi/Dockerfile
* 108.0.1.8718-1 - ubi: public/dockerfiles/mongodb-agent/108.0.1.8718-1/ubi/Dockerfile
* 108.0.11.8830-1 - ubi: public/dockerfiles/mongodb-agent/108.0.11.8830-1/ubi/Dockerfile
* 108.0.12.8846-1 - ubi: public/dockerfiles/mongodb-agent/108.0.12.8846-1/ubi/Dockerfile
* 108.0.2.8729-1 - ubi: public/dockerfiles/mongodb-agent/108.0.2.8729-1/ubi/Dockerfile
* 108.0.3.8758-1 - ubi: public/dockerfiles/mongodb-agent/108.0.3.8758-1/ubi/Dockerfile
* 108.0.4.8770-1 - ubi: public/dockerfiles/mongodb-agent/108.0.4.8770-1/ubi/Dockerfile
* 108.0.6.8796-1 - ubi: public/dockerfiles/mongodb-agent/108.0.6.8796-1/ubi/Dockerfile
* 108.0.7.8810-1 - ubi: public/dockerfiles/mongodb-agent/108.0.7.8810-1/ubi/Dockerfile
* 12.0.34.7888-1 - ubi: public/dockerfiles/mongodb-agent/12.0.34.7888-1/ubi/Dockerfile
* 12.0.35.7911-1 - ubi: public/dockerfiles/mongodb-agent/12.0.35.7911-1/ubi/Dockerfile
* 13.37.0.9590-1 - ubi: public/dockerfiles/mongodb-agent/13.37.0.9590-1/ubi/Dockerfile
Image: mongodb-kubernetes-database
* 1.0.1 - ubi: public/dockerfiles/mongodb-kubernetes-database/1.0.1/ubi/Dockerfile
* 1.1.0 - ubi: public/dockerfiles/mongodb-kubernetes-database/1.1.0/ubi/Dockerfile
* 1.2.0 - ubi: public/dockerfiles/mongodb-kubernetes-database/1.2.0/ubi/Dockerfile
Image: mongodb-kubernetes-init-database
* 1.0.1 - ubi: public/dockerfiles/mongodb-kubernetes-init-database/1.0.1/ubi/Dockerfile
* 1.1.0 - ubi: public/dockerfiles/mongodb-kubernetes-init-database/1.1.0/ubi/Dockerfile
* 1.2.0 - ubi: public/dockerfiles/mongodb-kubernetes-init-database/1.2.0/ubi/Dockerfile
Image: mongodb-kubernetes-init-appdb
* 1.0.1 - ubi: public/dockerfiles/mongodb-kubernetes-init-appdb/1.0.1/ubi/Dockerfile
* 1.1.0 - ubi: public/dockerfiles/mongodb-kubernetes-init-appdb/1.1.0/ubi/Dockerfile
* 1.2.0 - ubi: public/dockerfiles/mongodb-kubernetes-init-appdb/1.2.0/ubi/Dockerfile
Image: mongodb-enterprise-ops-manager
* 6.0.26 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/6.0.26/ubi/Dockerfile
* 6.0.27 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/6.0.27/ubi/Dockerfile
* 7.0.11 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.11/ubi/Dockerfile
* 7.0.12 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.12/ubi/Dockerfile
* 7.0.13 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.13/ubi/Dockerfile
* 7.0.14 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.14/ubi/Dockerfile
* 7.0.15 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.15/ubi/Dockerfile
* 7.0.17 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.17/ubi/Dockerfile
* 8.0.0 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.0/ubi/Dockerfile
* 8.0.1 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.1/ubi/Dockerfile
* 8.0.11 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.11/ubi/Dockerfile
* 8.0.12 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.12/ubi/Dockerfile
* 8.0.2 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.2/ubi/Dockerfile
* 8.0.3 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.3/ubi/Dockerfile
* 8.0.4 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.4/ubi/Dockerfile
* 8.0.5 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.5/ubi/Dockerfile
* 8.0.6 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.6/ubi/Dockerfile
* 8.0.7 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.7/ubi/Dockerfile
Image: mongodb-kubernetes-init-ops-manager
* 1.0.1 - ubi: public/dockerfiles/mongodb-kubernetes-init-ops-manager/1.0.1/ubi/Dockerfile
* 1.1.0 - ubi: public/dockerfiles/mongodb-kubernetes-init-ops-manager/1.1.0/ubi/Dockerfile
* 1.2.0 - ubi: public/dockerfiles/mongodb-kubernetes-init-ops-manager/1.2.0/ubi/Dockerfile
Image: mongodb-kubernetes
* 1.0.1 - ubi: public/dockerfiles/mongodb-kubernetes/1.0.1/ubi/Dockerfile
* 1.1.0 - ubi: public/dockerfiles/mongodb-kubernetes/1.1.0/ubi/Dockerfile
* 1.2.0 - ubi: public/dockerfiles/mongodb-kubernetes/1.2.0/ubi/Dockerfile

and after removing operator related images:

(venv) ➜  mongodb-kubernetes git:(master) ✗ scripts/dev/run_python.sh -m scripts.update_supported_dockerfiles
Image: mongodb-agent
* 107.0.11.8645-1 - ubi: public/dockerfiles/mongodb-agent/107.0.11.8645-1/ubi/Dockerfile
* 107.0.12.8669-1 - ubi: public/dockerfiles/mongodb-agent/107.0.12.8669-1/ubi/Dockerfile
* 107.0.13.8702-1 - ubi: public/dockerfiles/mongodb-agent/107.0.13.8702-1/ubi/Dockerfile
* 107.0.15.8741-1 - ubi: public/dockerfiles/mongodb-agent/107.0.15.8741-1/ubi/Dockerfile
* 107.0.17.8771-1 - ubi: public/dockerfiles/mongodb-agent/107.0.17.8771-1/ubi/Dockerfile
* 108.0.0.8694-1 - ubi: public/dockerfiles/mongodb-agent/108.0.0.8694-1/ubi/Dockerfile
* 108.0.1.8718-1 - ubi: public/dockerfiles/mongodb-agent/108.0.1.8718-1/ubi/Dockerfile
* 108.0.11.8830-1 - ubi: public/dockerfiles/mongodb-agent/108.0.11.8830-1/ubi/Dockerfile
* 108.0.12.8846-1 - ubi: public/dockerfiles/mongodb-agent/108.0.12.8846-1/ubi/Dockerfile
* 108.0.2.8729-1 - ubi: public/dockerfiles/mongodb-agent/108.0.2.8729-1/ubi/Dockerfile
* 108.0.3.8758-1 - ubi: public/dockerfiles/mongodb-agent/108.0.3.8758-1/ubi/Dockerfile
* 108.0.4.8770-1 - ubi: public/dockerfiles/mongodb-agent/108.0.4.8770-1/ubi/Dockerfile
* 108.0.6.8796-1 - ubi: public/dockerfiles/mongodb-agent/108.0.6.8796-1/ubi/Dockerfile
* 108.0.7.8810-1 - ubi: public/dockerfiles/mongodb-agent/108.0.7.8810-1/ubi/Dockerfile
* 12.0.34.7888-1 - ubi: public/dockerfiles/mongodb-agent/12.0.34.7888-1/ubi/Dockerfile
* 12.0.35.7911-1 - ubi: public/dockerfiles/mongodb-agent/12.0.35.7911-1/ubi/Dockerfile
* 13.37.0.9590-1 - ubi: public/dockerfiles/mongodb-agent/13.37.0.9590-1/ubi/Dockerfile
Image: mongodb-enterprise-ops-manager
* 6.0.26 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/6.0.26/ubi/Dockerfile
* 6.0.27 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/6.0.27/ubi/Dockerfile
* 7.0.11 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.11/ubi/Dockerfile
* 7.0.12 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.12/ubi/Dockerfile
* 7.0.13 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.13/ubi/Dockerfile
* 7.0.14 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.14/ubi/Dockerfile
* 7.0.15 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.15/ubi/Dockerfile
* 7.0.17 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/7.0.17/ubi/Dockerfile
* 8.0.0 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.0/ubi/Dockerfile
* 8.0.1 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.1/ubi/Dockerfile
* 8.0.11 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.11/ubi/Dockerfile
* 8.0.12 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.12/ubi/Dockerfile
* 8.0.2 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.2/ubi/Dockerfile
* 8.0.3 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.3/ubi/Dockerfile
* 8.0.4 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.4/ubi/Dockerfile
* 8.0.5 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.5/ubi/Dockerfile
* 8.0.6 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.6/ubi/Dockerfile
* 8.0.7 - ubi: public/dockerfiles/mongodb-enterprise-ops-manager/8.0.7/ubi/Dockerfile

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you added changelog file?

Copy link

⚠️ (this preview might not be accurate if the PR is not rebased on current master branch)

MCK 1.3.0 Release Notes

Bug Fixes

  • This change fixes the current complex and difficult-to-maintain architecture for stateful set containers, which relies on an "agent matrix" to map operator and agent versions which led to a sheer amount of images.
  • We solve this by shifting to a 3-container setup. This new design eliminates the need for the operator-version/agent-version matrix by adding one additional container containing all required binaries. This architecture maps to what we already do with the mongodb-database container.
  • Fixed an issue where the readiness probe reported the node as ready even when its authentication mechanism was not in sync with the other nodes, potentially causing premature restarts.

Other Changes

  • Optional permissions for PersistentVolumeClaim moved to a separate role. When managing the operator with Helm it is possible to disable permissions for PersistentVolumeClaim resources by setting operator.enablePVCResize value to false (true by default). When enabled, previously these permissions were part of the primary operator role. With this change, permissions have a separate role.
  • subresourceEnabled Helm value was removed. This setting used to be true by default and made it possible to exclude subresource permissions from the operator role by specifying false as the value. We are removing this configuration option, making the operator roles always have subresource permissions. This setting was introduced as a temporary solution for this OpenShift issue. The issue has since been resolved and the setting is no longer needed.

@MaciejKaras MaciejKaras marked this pull request as ready for review August 14, 2025 11:01
@MaciejKaras MaciejKaras requested a review from a team as a code owner August 14, 2025 11:01
@MaciejKaras MaciejKaras added the skip-changelog Use this label in Pull Request to not require new changelog entry file label Aug 14, 2025
@MaciejKaras MaciejKaras requested review from mircea-cosbuc and nammn and removed request for fealebenpae August 14, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Use this label in Pull Request to not require new changelog entry file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants