Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ metadata:
name: openstack-lightspeed
namespace: openstack
spec:
$(if [ -n "$RHOS_LS_IMAGE" ]; then
echo " ragImage: $RHOS_LS_IMAGE"
fi)
llmEndpoint: $LLM_ENDPOINT
llmEndpointType: openai
llmCredentials: openstack-lightspeed-apitoken
Expand Down
4 changes: 0 additions & 4 deletions api/v1beta1/openstacklightspeed_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ type DatabaseSpec struct {
type OpenStackLightspeedSpec struct {
OpenStackLightspeedCore `json:",inline"`

// +kubebuilder:validation:Optional
// ContainerImage for the OpenStack Lightspeed RAG container (will be set to environmental default if empty)
RAGImage string `json:"ragImage"`

// +kubebuilder:validation:Optional
// +kubebuilder:default=false
// Enables automatic OCP documentation based on cluster version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@ spec:
When false, uses reference_url (online).
type: boolean
type: object
ragImage:
description: ContainerImage for the OpenStack Lightspeed RAG container
(will be set to environmental default if empty)
type: string
tlsCACertBundle:
description: Configmap name containing a CA Certificates bundle
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ metadata:
]
capabilities: Basic Install
categories: AI/Machine Learning
createdAt: "2026-06-22T19:14:00Z"
createdAt: "2026-07-03T16:05:52Z"
description: AI-powered virtual assistant for Red Hat OpenStack Services on OpenShift
features.operators.openshift.io/cnf: "false"
features.operators.openshift.io/cni: "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@ spec:
When false, uses reference_url (online).
type: boolean
type: object
ragImage:
description: ContainerImage for the OpenStack Lightspeed RAG container
(will be set to environmental default if empty)
type: string
tlsCACertBundle:
description: Configmap name containing a CA Certificates bundle
type: string
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/lcore_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func buildInitContainers(
var containers []corev1.Container
containers = append(containers, corev1.Container{
Name: "vector-database-collect",
Image: instance.Spec.RAGImage,
Image: apiv1beta1.OpenStackLightspeedDefaultValues.RAGImageURL,
Command: func() []string {
cmd := []string{
"sh", VectorDBScriptsMountPath + "/" + VectorDBCollectScriptKey,
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/ocp_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ func BuildRAGConfigs(instance *apiv1beta1.OpenStackLightspeed, ocpVersion string
rags := []interface{}{
// OpenStack RAG
map[string]interface{}{
"image": instance.Spec.RAGImage,
"image": apiv1beta1.OpenStackLightspeedDefaultValues.RAGImageURL,
"indexPath": OpenStackLightspeedVectorDBPath,
},
}

// Add OCP RAG if enabled
if ocpVersion != "" {
rags = append(rags, map[string]interface{}{
"image": instance.Spec.RAGImage,
"image": apiv1beta1.OpenStackLightspeedDefaultValues.RAGImageURL,
"indexPath": GetOCPVectorDBPath(ocpVersion),
"indexID": GetOCPIndexName(ocpVersion),
})
Expand Down
20 changes: 5 additions & 15 deletions internal/controller/ocp_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,10 @@ func TestResolveOCPVersion(t *testing.T) {
}

func TestBuildRAGConfigs(t *testing.T) {
apiv1beta1.OpenStackLightspeedDefaultValues.RAGImageURL = testRAGImage

t.Run("OCP RAG disabled (empty version)", func(t *testing.T) {
instance := &apiv1beta1.OpenStackLightspeed{
Spec: apiv1beta1.OpenStackLightspeedSpec{
RAGImage: testRAGImage,
},
}
instance := &apiv1beta1.OpenStackLightspeed{}

configs := BuildRAGConfigs(instance, "")

Expand Down Expand Up @@ -268,11 +266,7 @@ func TestBuildRAGConfigs(t *testing.T) {
})

t.Run("OCP RAG enabled", func(t *testing.T) {
instance := &apiv1beta1.OpenStackLightspeed{
Spec: apiv1beta1.OpenStackLightspeedSpec{
RAGImage: testRAGImage,
},
}
instance := &apiv1beta1.OpenStackLightspeed{}

configs := BuildRAGConfigs(instance, "4.16")

Expand Down Expand Up @@ -332,11 +326,7 @@ func TestBuildRAGConfigs(t *testing.T) {
})

t.Run("OCP RAG with latest version", func(t *testing.T) {
instance := &apiv1beta1.OpenStackLightspeed{
Spec: apiv1beta1.OpenStackLightspeedSpec{
RAGImage: testRAGImage,
},
}
instance := &apiv1beta1.OpenStackLightspeed{}

configs := BuildRAGConfigs(instance, "latest")

Expand Down
4 changes: 0 additions & 4 deletions internal/controller/openstacklightspeed_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,6 @@ func (r *OpenStackLightspeedReconciler) Reconcile(ctx context.Context, req ctrl.
return ctrl.Result{}, nil
}

if instance.Spec.RAGImage == "" {
instance.Spec.RAGImage = apiv1beta1.OpenStackLightspeedDefaultValues.RAGImageURL
}

if instance.Spec.MaxTokensForResponse == 0 {
instance.Spec.MaxTokensForResponse = apiv1beta1.OpenStackLightspeedDefaultValues.MaxTokensForResponse
}
Expand Down
Loading