-
Notifications
You must be signed in to change notification settings - Fork 99
LCORE-3048 : snuryyeva/okp rag implementation (DO NOT MERGE) #2553
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
Open
snuryyeva
wants to merge
23
commits into
lightspeed-core:main
Choose a base branch
from
snuryyeva:snuryyeva/okp_rag_implementation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6c0c8a4
adding new OKP tests
8684b24
added skip tags
91cf1f9
fixed typo
f8b73f4
removed extra config calls
e7c7f3e
created config yaml and created step definitions
669f275
Merge branch 'main' into snuryyeva/okp_rag_implementation
335c086
extended steps
325a496
Merge branch 'main' into snuryyeva/okp_rag_implementation
b8f0bac
updated parsing logic for streaming
9ec8eaf
Merge branch 'main' into snuryyeva/okp_rag_implementation
e2faa2a
updated parameters for stopping docker
065f4a2
added Openshift support for OKP tests
fd3908a
Merge branch 'main' into snuryyeva/okp_rag_implementation
ae2c13b
addressing comments
e1bd2bd
Merge branch 'main' into snuryyeva/okp_rag_implementation
751079c
updated parsing logic in llm_query file
1b73eb1
linting
2e60615
Reset use_streaming_response_data for non-SSE responses
9ba8056
updated konflu runner for OKP deploy/cleanup and port forwarding
9bb8ac7
Add an OwnerReference to redhat-registry-pull-secret
0877f66
fixing syntax error
9e5aa1e
port-forward restart issue fix
14fc382
Added a timeout to both OKP readiness
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| metadata: | ||
| name: okp-solr-service | ||
| labels: | ||
| app: okp-solr | ||
| spec: | ||
| securityContext: | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| imagePullSecrets: | ||
| - name: redhat-registry-pull-secret | ||
| containers: | ||
| - name: okp-solr | ||
| image: registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest | ||
| imagePullPolicy: IfNotPresent | ||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| capabilities: | ||
| drop: ["ALL"] | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /solr | ||
| port: 8080 | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 3 | ||
| livenessProbe: | ||
| httpGet: | ||
| path: /solr | ||
| port: 8080 | ||
| initialDelaySeconds: 60 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 3 | ||
| resources: | ||
| requests: | ||
| memory: "512Mi" | ||
| cpu: "250m" | ||
| limits: | ||
| memory: "2Gi" | ||
| cpu: "1000m" | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: okp-solr-service-svc | ||
| spec: | ||
| selector: | ||
| app: okp-solr | ||
| ports: | ||
| - port: 8080 | ||
| targetPort: 8080 | ||
| name: http | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Pin the OKP image to an immutable digest.
Line 16 uses
:latest. Line 17 can reuse a cached image that differs between nodes. The same E2E scenario can then run against different OKP versions. Use a tested image digest.🧰 Tools
🪛 Checkov (3.3.10)
[low] 1-51: The default namespace should not be used
(CKV_K8S_21)
[low] 1-51: Image should use digest
(CKV_K8S_43)
[low] 1-51: Image Pull Policy should be Always
(CKV_K8S_15)
[low] 1-51: Image Tag should be fixed - not latest or blank
(CKV_K8S_14)
[low] 1-51: Use read-only filesystem for containers where possible
(CKV_K8S_22)
[low] 1-51: Containers should run as a high UID to avoid host conflict
(CKV_K8S_40)
[low] 1-51: Ensure that Service Account Tokens are only mounted where necessary
(CKV_K8S_38)
🪛 Trivy (0.73.0)
[warning] 15-50: Image tag ":latest" used
Container 'okp-solr' of Pod 'okp-solr-service' should specify an image tag
Rule: KSV-0013
Learn more
(IaC/Kubernetes)
[error] 15-50: Root file system is not read-only
Container 'okp-solr' of Pod 'okp-solr-service' should set 'securityContext.readOnlyRootFilesystem' to true
Rule: KSV-0014
Learn more
(IaC/Kubernetes)
[info] 15-50: Runs with UID <= 10000
Container 'okp-solr' of Pod 'okp-solr-service' should set 'securityContext.runAsUser' > 10000
Rule: KSV-0020
Learn more
(IaC/Kubernetes)
[info] 15-50: Runs with GID <= 10000
Container 'okp-solr' of Pod 'okp-solr-service' should set 'securityContext.runAsGroup' > 10000
Rule: KSV-0021
Learn more
(IaC/Kubernetes)
[warning] 15-50: Restrict container images to trusted registries
Container okp-solr in pod okp-solr-service (namespace: default) uses an image from an untrusted registry.
Rule: KSV-0125
Learn more
(IaC/Kubernetes)
🤖 Prompt for AI Agents
Source: Linters/SAST tools