Skip to content

Commit

Permalink
Update to ubi9 and use -ubi prefix for operator image (#7321)
Browse files Browse the repository at this point in the history
This updates the base image of the UBI operator image from `ubi8` to `ubi9`
and changes the naming of the UBI operator image to be version agnostic by
just using `-ubi` prefix.
  • Loading branch information
thbkrkr authored Nov 20, 2023
1 parent 34b96ca commit 509b3b8
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ steps:
- trigger: unified-release-copy-elastic-images-to-dockerhub
build:
env:
IMAGES_NAMES: "eck/eck-operator,eck/eck-operator-fips,eck/eck-operator-ubi8,eck/eck-operator-ubi8-fips"
IMAGES_NAMES: "eck/eck-operator,eck/eck-operator-fips,eck/eck-operator-ubi,eck/eck-operator-ubi-fips"
IMAGES_TAG: "$${BUILDKITE_TAG#v}"
YAML
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/common/operator-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ operator::set_build_flavors_var() {
trigger=$1
if [[ "${BUILD_FLAVORS:-}" == "" ]]; then
case $trigger in
tag-*) BUILD_FLAVORS="eck,eck-dev,eck-fips,eck-ubi8,eck-ubi8-fips" ;;
tag-*) BUILD_FLAVORS="eck,eck-dev,eck-fips,eck-ubi,eck-ubi-fips" ;;
*-main) BUILD_FLAVORS="eck,eck-dev" ;;
*-test-snapshot) BUILD_FLAVORS="eck,eck-dev" ;;
pr-*|merge-xyz) BUILD_FLAVORS="eck" ;;
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile-ubi
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN --mount=type=cache,mode=0755,target=/go/pkg/mod \

# ---------------------------------------------
# Copy the operator binary into a lighter image
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9-1029
FROM registry.access.redhat.com/ubi9/ubi-minimal:8.9-1029

# Update the base image packages to the latest versions
RUN microdnf update --setopt=tsflags=nodocs && microdnf clean all
Expand Down
6 changes: 3 additions & 3 deletions build/gen-drivah.toml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ main() {
license_pubkey=dev-license.key
BUILD_LICENSE_PUBKEY=dev
fi
# UBI8 build
if [[ "$flavor" =~ -ubi8 ]]; then
name="$name-ubi8"
# UBI build
if [[ "$flavor" =~ -ubi ]]; then
name="$name-ubi"
container_file_path=$HERE/Dockerfile-ubi
fi
# FIPS build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
# UBI is only required when needing the `chcon` binary when running
# in an SELinux-enabled/OpenShift environment. If that
# is not required then the following smaller image can be used instead:
# image: registry.access.redhat.com/ubi8/ubi-minimal:latest
# image: registry.access.redhat.com/ubi9/ubi-minimal:latest
image: docker.io/bash:5.2.15
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ spec:
name: "agent-data"
initContainers:
- name: manage-agent-hostpath-permissions
# image: registry.access.redhat.com/ubi8/ubi-minimal:latest <2>
# image: registry.access.redhat.com/ubi9/ubi-minimal:latest <2>
image: docker.io/bash:5.2.15
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion hack/deployer/clients/ocp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ RUN curl -fsSLO https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${CLIE
mv oc /usr/local/bin/oc && \
rm openshift-client-linux-${CLIENT_VERSION}.tar.gz

FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9-1029
FROM registry.access.redhat.com/ubi9/ubi-minimal:8.9-1029
COPY --from=builder /usr/local/bin/openshift-install .
COPY --from=builder /usr/local/bin/oc .
2 changes: 1 addition & 1 deletion hack/operatorhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ If `enable-vault` flag is `true` the following keys will attempt to be read from
The `container push` sub-command will perform the following tasks:
1. Determine if there is an image in the [redhat certification API](https://catalog.redhat.com/api/containers/v1) that has the given `tag` associated with `newVersion`, using the provided `project-id`.
2. If image is already found, nothing is done without using the `force` flag.
3. If image not found, or `force` flag set, will push `docker.elastic.co/eck/eck-operator-ubi8:$(newVersion)` to `quay.io` docker registry, tagged as `quay.io/redhat-isv-containers/$(project-id):$(newVersion)`.
3. If image not found, or `force` flag set, will push `docker.elastic.co/eck/eck-operator-ubi:$(newVersion)` to `quay.io` docker registry, tagged as `quay.io/redhat-isv-containers/$(project-id):$(newVersion)`.

### Publish sub-command

Expand Down
2 changes: 1 addition & 1 deletion hack/operatorhub/internal/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

const (
eckOperatorFormat = "docker.elastic.co/eck/eck-operator-ubi8:%s"
eckOperatorFormat = "docker.elastic.co/eck/eck-operator-ubi:%s"
registryURL = "quay.io"
httpAcceptHeader = "Accept"
httpContentTypeHeader = "Content-Type"
Expand Down

0 comments on commit 509b3b8

Please sign in to comment.