Skip to content

Commit

Permalink
OLS-987: Add RHELAI as a provider in prow CI
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Tisnovsky <[email protected]>
  • Loading branch information
syedriko authored and tisnik committed Nov 11, 2024
1 parent b2d9920 commit 4ce706b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/config/operator_install/olsconfig.crd.rhelai_vllm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: ols.openshift.io/v1alpha1
kind: OLSConfig
metadata:
name: cluster
labels:
app.kubernetes.io/created-by: lightspeed-operator
app.kubernetes.io/instance: olsconfig-sample
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: olsconfig
app.kubernetes.io/part-of: lightspeed-operator
spec:
llm:
providers:
- credentialsSecretRef:
name: llmcreds
models:
- name: gpt-3.5-turbo
name: rhelai_vllm
type: rhelai_vllm
ols:
defaultModel: gpt-3.5-turbo
defaultProvider: rhelai_vllm
deployment:
replicas: 1
disableAuth: false
logLevel: DEBUG
queryFilters:
- name: foo_filter
pattern: '\b(?:foo)\b'
replaceWith: "deployment"
- name: bar_filter
pattern: '\b(?:bar)\b'
replaceWith: "openshift"
4 changes: 4 additions & 0 deletions tests/scripts/test-e2e-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ function run_suites() {
run_suite "rhoai_vllm" "smoketest" "rhoai_vllm" "$OPENAI_PROVIDER_KEY_PATH" "gpt-3.5-turbo" "$OLS_IMAGE"
(( rc = rc || $? ))

# smoke tests for RHELAI VLLM-compatible provider
run_suite "rhelai_vllm" "smoketest" "rhelai_vllm" "$OPENAI_PROVIDER_KEY_PATH" "gpt-3.5-turbo" "$OLS_IMAGE"
(( rc = rc || $? ))

set -e

return $rc
Expand Down

0 comments on commit 4ce706b

Please sign in to comment.