[BUILD-2306] Hummingbird base image for operator - #1392
Conversation
Update Dockerfile and bundle.Dockerfile CPE and operator image name labels.
PR Summary by QodoBuild operator image on Hummingbird bases and update labels to el10
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Cache copied into runtime
|
| ENV HOME=/opt/app-root/src | ||
| ENV GOCACHE=/opt/app-root/src/.cache/go-build | ||
| ENV GOMODCACHE=/opt/app-root/src/.cache/go-mod |
There was a problem hiding this comment.
1. Cache copied into runtime 🐞 Bug ➹ Performance
The builder stage now forces GOCACHE/GOMODCACHE under /opt/app-root/src, and the runtime stage copies the entire /opt/app-root/src directory, so Go build cache (and possibly module cache) will be shipped in the final operator image and increase image size.
Agent Prompt
## Issue description
The final image includes build-time Go cache directories because the builder stage stores caches under `/opt/app-root/src` and the runtime stage copies `/opt/app-root/src` wholesale.
## Issue Context
This increases image size and ships non-runtime artifacts (e.g., `go-build` cache object files) into production images.
## Fix Focus Areas
- Dockerfile[7-9]
- Dockerfile[26-27]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| io.openshift.tags="builds,operator" \ | ||
| maintainer="openshift-builds@redhat.com" \ | ||
| name="openshift-builds/openshift-builds-rhel9-operator" \ | ||
| name="openshift-builds/openshift-builds-rhel10-operator" \ |
There was a problem hiding this comment.
2. Rhel10 label/name mismatch 🐞 Bug ⚙ Maintainability
The Dockerfile now labels the image as an el10/rhel10 operator, but the repo build configuration and CSV/manifests still reference the rhel9 operator image name, leaving inconsistent image/product metadata in the same release.
Agent Prompt
## Issue description
The operator image label metadata was updated to `...-rhel10-operator`/`el10`, but build and deployment metadata in-repo continues to use `...-rhel9-operator`, creating inconsistent product identifiers.
## Issue Context
This can cause confusion during release/certification and makes it unclear which image naming convention is authoritative.
## Fix Focus Areas
- Dockerfile[36-46]
- Makefile[29-35]
- bundle/manifests/openshift-builds-operator.clusterserviceversion.yaml[38-46]
- config/manifests/bases/openshift-builds-operator.clusterserviceversion.yaml[9-16]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Rebase operator Dockerfile to hi/go + hi/core-runtime.