You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: ConfigMap image mapping overrides for LLS Distro
Implements a mechanism for the Llama Stack Operator to read and apply
LLS Distribution image updates from a ConfigMap, enabling independent patching
for security fixes or bug fixes without requiring a new LLS Operator or RHOAI version.
- Add RHODS version detection from ClusterServiceVersion
- Add ImageMappingOverrides field to LlamaStackDistributionReconciler
- Implement parseImageMappingOverrides() to read image-overrides from ConfigMap
- Add RBAC permissions for operators.coreos.com/clusterserviceversions
- Support symbolic name mapping (e.g., rhdev-2.25) to specific images
- Included unit tests
The operator now reads image overrides from the 'image-overrides' key in the
operator ConfigMap, supporting YAML format with version-to-image mappings.
Overrides take precedence over default distribution images and are refreshed
on each reconciler initialization.
Closes: RHAIENG-1079
Signed-off-by: Derek Higgins <[email protected]>
The operator supports ConfigMap-driven image updates for LLS Distribution images. This allows independent patching for security fixes or bug fixes without requiring a new operator version.
110
+
111
+
### Configuration
112
+
113
+
Create or update the operator ConfigMap with an `image-overrides` key:
Use the format `rh-dev-<major>-<minor>` for symbolic names that correspond to RHOAI versions. The operator will automatically detect the current RHOAI version and apply the appropriate override.
129
+
130
+
### How It Works
131
+
132
+
1. The operator reads image overrides from the `image-overrides` key in the operator ConfigMap
133
+
2. Overrides are parsed as YAML with version-to-image mappings
134
+
3. When deploying a LlamaStackDistribution, the operator checks for overrides matching the current RHOAI version
135
+
4. If an override exists, it uses the specified image instead of the default distribution image
136
+
5. Changes to the ConfigMap automatically trigger reconciliation of all LlamaStackDistribution resources
137
+
138
+
### Example Usage
139
+
140
+
To update the LLS Distribution image for RHOAI 2.25:
This will cause all LlamaStackDistribution resources using the `rh-dev` name to restart with the new image while using RHOAI version 2.25.Z, once RHOAI is upgraded to another version then the distribution will revert back to the default for that version.
0 commit comments