-
Notifications
You must be signed in to change notification settings - Fork 166
OCPBUGS-87517: Updating openshift-enterprise-console-operator-container image to be consistent with ART for 5.0 #1171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| build_root_image: | ||
| name: release | ||
| namespace: openshift | ||
| tag: rhel-9-release-golang-1.25-openshift-4.22 | ||
| tag: rhel-9-release-golang-1.26-openshift-5.0 |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,11 +1,11 @@ | ||||||||||||||||
| FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder | ||||||||||||||||
| FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 AS builder | ||||||||||||||||
| ARG TAGS=ocp | ||||||||||||||||
| WORKDIR /go/src/github.com/openshift/console-operator | ||||||||||||||||
| COPY . . | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid copying full build context into the builder stage.
Proposed tightening-COPY . .
+COPY go.mod go.sum ./
+COPY cmd ./cmd
+COPY pkg ./pkg
+COPY manifests ./manifests
+COPY quickstarts ./quickstarts
+COPY vendor ./vendor📝 Committable suggestion
Suggested change
🤖 Prompt for AI AgentsSource: Coding guidelines |
||||||||||||||||
| ENV GO_PACKAGE github.com/openshift/console-operator | ||||||||||||||||
| RUN go build -ldflags "-X $GO_PACKAGE/pkg/version.versionFromGit=$(git describe --long --tags --abbrev=7 --match 'v[0-9]*')" -tags="${TAGS}" -o console ./cmd/console | ||||||||||||||||
|
|
||||||||||||||||
| FROM registry.ci.openshift.org/ocp/4.22:base-rhel9 | ||||||||||||||||
| FROM registry.ci.openshift.org/ocp/5.0:base-rhel9 | ||||||||||||||||
| RUN useradd console-operator | ||||||||||||||||
| USER console-operator | ||||||||||||||||
| COPY --from=builder /go/src/github.com/openshift/console-operator/console /usr/bin/console | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use approved Red Hat base image source per container policy.
Both updated
FROMimages are pulled fromregistry.ci.openshift.org, but this policy requires base images fromcatalog.redhat.com(UBI minimal or distroless). Please switch both builder/runtime bases to approved catalog sources for production image compliance.As per coding guidelines, "
Base image: UBI minimal or distroless from catalog.redhat.com."Also applies to: 8-8
🤖 Prompt for AI Agents
Source: Coding guidelines