-
Notifications
You must be signed in to change notification settings - Fork 6
feat(controller): add OCP version auto-detection for RAG configuration #73
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
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 |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ metadata: | |
| } | ||
| ] | ||
| capabilities: Basic Install | ||
| createdAt: "2026-01-16T13:55:22Z" | ||
| createdAt: "2026-02-03T12:43:44Z" | ||
| operatorframework.io/suggested-namespace: openshift-lightspeed | ||
| operators.operatorframework.io/builder: operator-sdk-v1.38.0 | ||
| operators.operatorframework.io/project_layout: go.kubebuilder.io/v4 | ||
|
|
@@ -35,37 +35,15 @@ spec: | |
| apiservicedefinitions: {} | ||
| customresourcedefinitions: | ||
| owned: | ||
| - kind: OpenStackLightspeed | ||
| - description: OpenStackLightspeed is the Schema for the openstacklightspeeds | ||
| API | ||
| displayName: Open Stack Lightspeed | ||
| kind: OpenStackLightspeed | ||
| name: openstacklightspeeds.lightspeed.openstack.org | ||
| specDescriptors: | ||
| - description: URL pointing to the LLM | ||
| displayName: LLMEndpoint | ||
| path: llmEndpoint | ||
| - description: Type of the provider serving the LLM | ||
| displayName: LLMEndpointType | ||
| displayName: Provider Type | ||
| path: llmEndpointType | ||
| - description: Name of the model to use at the API endpoint | ||
| displayName: ModelName | ||
| path: modelName | ||
| - description: Secret name containing API token for the LLMEndpoint | ||
| displayName: LLMCredentials | ||
| path: llmCredentials | ||
| x-descriptors: | ||
| - urn:alm:descriptor:io.kubernetes:Secret | ||
| - description: Configmap name containing a CA Certificates bundle | ||
| displayName: TLSCACertBundle | ||
| path: tlsCACertBundle | ||
| x-descriptors: | ||
| - urn:alm:descriptor:io.kubernetes:ConfigMap | ||
| - description: MaxTokensForResponse defines the maximum number of tokens to | ||
| be used for the response generation | ||
| displayName: MaxTokensForResponse | ||
| path: maxTokensForResponse | ||
| x-descriptors: | ||
| - urn:alm:descriptor:com.tectonic.ui:advanced | ||
| statusDescriptors: | ||
| - displayName: Conditions | ||
| path: conditions | ||
| version: v1beta1 | ||
| description: |- | ||
| OpenStack Lightspeed is a generative AI-based virtual assistant for Red Hat OpenStack Services on OpenShift (RHOSO) users which integrates into the OpenShift Lightspeed. | ||
|
|
@@ -81,6 +59,14 @@ spec: | |
| spec: | ||
| clusterPermissions: | ||
| - rules: | ||
| - apiGroups: | ||
| - config.openshift.io | ||
| resources: | ||
| - clusterversions | ||
| verbs: | ||
| - get | ||
| - list | ||
|
Contributor
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. We should also watch the object so the deployment can be changed if OCP is updated from 4.16 to 4.18.
Contributor
Author
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. added watched object , we can see the changes in the RBAC and i have modified controller to set up watch |
||
| - watch | ||
| - apiGroups: | ||
| - lightspeed.openstack.org | ||
| resources: | ||
|
|
@@ -187,6 +173,8 @@ spec: | |
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.annotations['olm.targetNamespaces'] | ||
| - name: RELATED_IMAGE_OPENSTACK_LIGHTSPEED_IMAGE_URL_DEFAULT | ||
| value: quay.io/openstack-lightspeed/rag-content:os-docs-2025.2 | ||
| image: quay.io/openstack-lightspeed/operator:latest | ||
| livenessProbe: | ||
| httpGet: | ||
|
|
@@ -307,7 +295,11 @@ spec: | |
| - email: Lukas Piwowarski | ||
| name: lpiwowar@redhat.com | ||
| maturity: alpha | ||
| minKubeVersion: 1.31.0 | ||
| provider: | ||
| name: Red Hat | ||
| url: https://github.com/openstack-lightspeed/operator | ||
| relatedImages: | ||
| - image: quay.io/openstack-lightspeed/rag-content:os-docs-2025.2 | ||
| name: openstack-lightspeed-image-url-default | ||
| version: 0.0.1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,14 @@ kind: ClusterRole | |
| metadata: | ||
| name: manager-role | ||
| rules: | ||
| - apiGroups: | ||
| - config.openshift.io | ||
| resources: | ||
| - clusterversions | ||
| verbs: | ||
| - get | ||
| - list | ||
|
Contributor
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. As mentioned above, shouldn't we also watch the object to detect updates? |
||
| - watch | ||
| - apiGroups: | ||
| - lightspeed.openstack.org | ||
| resources: | ||
|
|
||
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.
suggestion (non-blocking): I like this change 👍 . But whenever proposing a PR any changes that are not directly connected to the PR itself should be at least a separate commit.