When setting a custom registry url the imageType is ignored.
What did you do to encounter the bug?
Deploy the operator with a custom community.mongodb.repo value:
community:
mongodb:
repo: registry.example.com/quay.io/mongodb
What did you expect?
I expect the mongodb pods to use the image registry.example.com/quay.io/mongodb/mongodb-community-server:8.2.3-ubi8.
What happened instead?
Due to the logic in controllers/replica_set_controller.go the resulting image tag is registry.example.com/quay.io/mongodb/mongodb-community-server:8.2.3, without the imageType appended. When using a simple pull cache, this fails, because all images are pushed with the variant appended to the tag.
Operator Information
- Operator Version: 1.6.1
- MongoDB Image used: 8.2.3
When setting a custom registry url the
imageTypeis ignored.What did you do to encounter the bug?
Deploy the operator with a custom
community.mongodb.repovalue:What did you expect?
I expect the mongodb pods to use the image
registry.example.com/quay.io/mongodb/mongodb-community-server:8.2.3-ubi8.What happened instead?
Due to the logic in controllers/replica_set_controller.go the resulting image tag is
registry.example.com/quay.io/mongodb/mongodb-community-server:8.2.3, without theimageTypeappended. When using a simple pull cache, this fails, because all images are pushed with the variant appended to the tag.Operator Information