Repository navigation
feat: Config for replacing RAG IC with OKP on IA - #3477
Conversation
|
Thanks @gazarenkov let me try this out |
…tion # Conflicts: # config/profile/rhdh/default-config/flavours/intelligent-assistant/configmap-files.yaml # config/profile/rhdh/default-config/flavours/intelligent-assistant/deployment.yaml # config/profile/rhdh/default-config/flavours/intelligent-assistant/dynamic-plugins.yaml
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3477 +/- ##
==========================================
+ Coverage 59.18% 60.00% +0.81%
==========================================
Files 49 51 +2
Lines 3474 3560 +86
==========================================
+ Hits 2056 2136 +80
- Misses 1229 1230 +1
- Partials 189 194 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Two overall comments:
First, config/profile/rhdh/kustomization.yaml needs two files for running on OpenShift:
- files:
...
- default-config/flavours/intelligent-assistant/networkpolicy.yaml
name: flavour-intelligent-assistant-config
- files:
...
- plugin-deps/okp.yaml
name: plugin-deps
And regenerate with
make bundle PROFILE=rhdh
make build-installer PROFILE=rhdh
Second, Confirmed on Kind that Kubernetes renders IA without OKP: no OKP resources, OKP_SERVICE_URL, or OKP RAG configuration. However, there is currently no Kubernetes OKP opt-in path; the templates hard-gate OKP to OpenShift...We should also do Kubernetes OKP opt-in (via Ingress). I msgd you on Slack, we can either document this as an MD file or as a new flavor like how you initially suggested if we want to keep it more simple. IF we are going for the Docs approach, the OKP Deployment and Service must remain available on both platforms. Only the Route should be annotated rhdh.redhat.com/platform: ocp
maysunfaisal
left a comment
There was a problem hiding this comment.
lgtm
I will open a follow up PR for adding two flavors to enable OKP (OKP will be disabled by default)
PR Summary by QodoParameterize configs and replace Intelligent Assistant RAG with OKP
AI Description
Diagram
High-Level Assessment
Files changed (39)
|
Code Review by Qodo
1.
|
|
Important The |
|
|
✅ PR images built and pushed successfully! Images are available for testing (expires in 7 days):
|
| pluginConfig: | ||
| dynamicPlugins: | ||
| frontend: | ||
| red-hat-developer-hub.backstage-plugin-intelligent-assistant: | ||
| translationResources: | ||
| - importName: lightspeedTranslations | ||
| module: Alpha | ||
| ref: intelligentAssistantTranslationRef | ||
| dynamicRoutes: | ||
| - path: /intelligent-assistant | ||
| importName: LightspeedPage | ||
| module: Legacy | ||
| mountPoints: | ||
| - mountPoint: application/listener | ||
| importName: LightspeedFAB | ||
| module: Legacy | ||
| - mountPoint: application/provider | ||
| importName: LightspeedDrawerProvider | ||
| module: Legacy | ||
| - mountPoint: application/internal/drawer-state | ||
| importName: LightspeedDrawerStateExposer | ||
| module: Legacy | ||
| config: | ||
| id: intelligent-assistant | ||
| - mountPoint: application/internal/drawer-content | ||
| importName: LightspeedChatContainer | ||
| module: Legacy | ||
| config: | ||
| id: intelligent-assistant | ||
| priority: 100 |
There was a problem hiding this comment.
| pluginConfig: | |
| dynamicPlugins: | |
| frontend: | |
| red-hat-developer-hub.backstage-plugin-intelligent-assistant: | |
| translationResources: | |
| - importName: lightspeedTranslations | |
| module: Alpha | |
| ref: intelligentAssistantTranslationRef | |
| dynamicRoutes: | |
| - path: /intelligent-assistant | |
| importName: LightspeedPage | |
| module: Legacy | |
| mountPoints: | |
| - mountPoint: application/listener | |
| importName: LightspeedFAB | |
| module: Legacy | |
| - mountPoint: application/provider | |
| importName: LightspeedDrawerProvider | |
| module: Legacy | |
| - mountPoint: application/internal/drawer-state | |
| importName: LightspeedDrawerStateExposer | |
| module: Legacy | |
| config: | |
| id: intelligent-assistant | |
| - mountPoint: application/internal/drawer-content | |
| importName: LightspeedChatContainer | |
| module: Legacy | |
| config: | |
| id: intelligent-assistant | |
| priority: 100 |
Not a blocker, but do we really need to redefine the pluginConfig here? It should be inherited from the default config, no?
There was a problem hiding this comment.
Not a big deal, can be addressed later if needed.



Description
Summary
Features
Template Substitution in Default Config
Enable dynamic value injection in default-config and flavour configuration files using Go template syntax:
This allows plugin configurations to reference instance-specific values like internal service URLs (e.g.,
http://okp-{{.Backstage.Name}}).Platform Gating for Plugin Dependencies
Plugin dependency resources can now be filtered by platform using the rhdh.redhat.com/platform annotation:
Values: ocp (OpenShift) or k8s (Kubernetes). Resources without annotation are applied on all platforms.
Which issue(s) does this PR fix or relate to
https://redhat.atlassian.net/browse/RHIDP-16793
PR acceptance criteria
How to test changes / Special notes to the reviewer
NOTE: To make it work with k8s imagePullSecret to access registry.redhat.io added to plugin-deps/okp.yaml.
Recommendation: Move the okp image to registry.access.redhat.com instead, it is supported but does not require authentication.
Current state of PR allows to deploy LCORE + OKP on Openshift (see picture):
Building Container Images for Testing
Need to test container images from this PR?
For Maintainers: To trigger a test image build, review the code and comment
/build-images.This always builds the HEAD of the PR branch.
For Contributors: Ask a maintainer to run
/build-images.Images will be built and pushed to Quay with links posted in comments.