Skip to content

Add ubi9/ubi-minimal:9.7 to bundle related images#19203

Merged
chaitanya1731 merged 2 commits intored-hat-data-services:rhoai-3.4from
kahowell:ubi-minimal-for-curl
Apr 16, 2026
Merged

Add ubi9/ubi-minimal:9.7 to bundle related images#19203
chaitanya1731 merged 2 commits intored-hat-data-services:rhoai-3.4from
kahowell:ubi-minimal-for-curl

Conversation

@kahowell
Copy link
Copy Markdown

@kahowell kahowell commented Apr 7, 2026

RHOAIENG-57046

@kahowell kahowell force-pushed the ubi-minimal-for-curl branch from 34ba9d6 to 1b321ff Compare April 8, 2026 21:30
RHOAIENG-57046

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kahowell kahowell force-pushed the ubi-minimal-for-curl branch from 1b321ff to 8f5d86c Compare April 14, 2026 18:56
@kahowell
Copy link
Copy Markdown
Author

1b321ff to 8f5d86c: handling merge conflicts.

openshift-merge-bot bot pushed a commit to opendatahub-io/models-as-a-service that referenced this pull request Apr 15, 2026
…ob (#751)

## Summary

Add `maas-api-key-cleanup-image` to `params.env` and wire it via
kustomize replacement into the cleanup CronJob, enabling the ODH
operator to override the image at deploy time.

## Description

The `maas-api-key-cleanup` CronJob currently uses a hardcoded
`registry.redhat.io/ubi9/ubi-minimal:9.7` image for the curl-based API
key cleanup. This means the ODH operator has no way to override it with
a pinned SHA digest at deploy time.

- Add `maas-api-key-cleanup-image` key to
`deployment/overlays/odh/params.env` with the default ubi-minimal image.
- Add a kustomize replacement in
`deployment/components/shared-patches/kustomization.yaml` that wires
`data.maas-api-key-cleanup-image` from the `maas-parameters` ConfigMap
into the CronJob container image field.
- This enables the operator's `ApplyParams()` to substitute the image
via `RELATED_IMAGE_UBI_MINIMAL_IMAGE` (from the bundle CSV), ensuring
pinned SHA digests in production and support for disconnected
environments.

**Companion changes required:**
- [RHOAI-Build-Config PR
#19203](red-hat-data-services/RHOAI-Build-Config#19203)
— adds `RELATED_IMAGE_UBI_MINIMAL_IMAGE` to
`additional-images-patch.yaml`
- opendatahub-operator — adds `"maas-api-key-cleanup-image":
"RELATED_IMAGE_UBI_MINIMAL_IMAGE"` to `imagesMap` in
`modelsasservice_support.go`

## How It Was Tested

- Verified kustomize build renders the CronJob with the image from
`params.env`.
- Without the operator change, the CronJob uses the default value from
`params.env` (same image as today — no behavioral change).

Made with [Cursor](https://cursor.com)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Added configuration for a new API key cleanup task in the deployment
environment. Updated deployment settings to include a dedicated
container image for cleanup operations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Chaitanya Kulkarni <ckulkarn@redhat.com>
Signed-off-by: Chaitanya Kulkarni <chkulkar@redhat.com>
@chaitanya1731 chaitanya1731 merged commit f5ffc63 into red-hat-data-services:rhoai-3.4 Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants