Commit 24f2af3
committed
[OSPRH-16305] Introduce OpenStackLightspeed
Introduce the OpenStackLightspeed custom resource that manages the
deployment of Lightspeed-related functionalities. As of now, we expect
the OLS operator to be present in the cluster; otherise, enabling
OpenStackLightspeed will fail. The Lightspeed functionalities can be
enbled through OpenStackControlPlane:
openstacklightspeed:
enabled: true
template:
llmEndpoint: "https://models.com"
llmEndpointType: "rhelai_vllm"
llmCredentials: <secret_name>
modelName: "/data/granite-3.1-8b-instruct"
TLSCACertBundle: <CM name>
Only one OpenStackControlPlane CR can configure OpenStack Lightspeed at
a single time. If the user tries to manage the Lightspeed
functionalities through two or more OpenStackControlPlanes, it will
fail.
Current limitations of the implementation:
- We use uns.unstructured{} to work with OLSConfig [1] due to Go
version incompatibilities between the OLS operator and
openstack-operator.
- The changes are cluster-wide. They will not work nicely if other
services are installed.
[1] https://github.com/openshift/lightspeed-operator/blob/main/api/v1alpha1/olsconfig_types.go
Shorten webhook_suite_test.go
Discover Index ID
Discover Index ID by spawning a pod with the rag-content container
image. By inspecting the value stored in INDEX_NAME env variable we can
conclude what Index ID value should be utilized [1].
This is only temporarly solution until the IndexID gets removed from
required fields in OLSConfig.
[1]
https://github.com/openstack-lightspeed/rag-content/blob/5e8339870c3600120bf6080e68a6ffb14a115d61/Containerfile#L53C5-L53C15
Rename TLSCACertBundle field to tlsCACertBundle
Mark LLMCredentials and TLSCACertBundle optional
This commit marks the LLMCredentials and TLSCACertBundle as optional.
Also it ensures that when patching the OLSConfig Optional values are
checked for nil. If an optional value is not set it won't be added into
the patched OLSConfig.
Mark llmCredentials as required
The llmCredentials parameter is required in OLSConfig and therefore
should remain as required in our CRD as well.
Also, do not pass the tlsCACertBundle value to OLSConfig when it is nil as it
is an optional parameter.
Rename TLSCACertBundle in config/sample
Remove rights for olsconfig/{status,finalizers}
Fix finalizers removal in reconcileDelete
Remove Optional from LLMCredentials
Rename LightSpeed to Lightspeed1 parent 5f8fbc7 commit 24f2af3
42 files changed
Lines changed: 2146 additions & 1 deletion
File tree
- apis
- bases
- core/v1beta1
- lightspeed/v1beta1
- bindata
- crds
- operator
- rbac
- config
- crd
- bases
- patches
- manifests/bases
- operator
- rbac
- samples
- webhook
- controllers
- core
- lightspeed
- hack
- pkg
- lightspeed
- openstack
- tests/functional/ctlplane
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
89 | 102 | | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11727 | 11727 | | |
11728 | 11728 | | |
11729 | 11729 | | |
| 11730 | + | |
| 11731 | + | |
| 11732 | + | |
| 11733 | + | |
| 11734 | + | |
| 11735 | + | |
| 11736 | + | |
| 11737 | + | |
| 11738 | + | |
| 11739 | + | |
| 11740 | + | |
| 11741 | + | |
| 11742 | + | |
| 11743 | + | |
| 11744 | + | |
| 11745 | + | |
| 11746 | + | |
| 11747 | + | |
| 11748 | + | |
| 11749 | + | |
| 11750 | + | |
| 11751 | + | |
| 11752 | + | |
| 11753 | + | |
| 11754 | + | |
| 11755 | + | |
| 11756 | + | |
| 11757 | + | |
| 11758 | + | |
| 11759 | + | |
| 11760 | + | |
| 11761 | + | |
11730 | 11762 | | |
11731 | 11763 | | |
11732 | 11764 | | |
| |||
18769 | 18801 | | |
18770 | 18802 | | |
18771 | 18803 | | |
| 18804 | + | |
| 18805 | + | |
18772 | 18806 | | |
18773 | 18807 | | |
18774 | 18808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
413 | 415 | | |
414 | 416 | | |
415 | 417 | | |
| 418 | + | |
| 419 | + | |
416 | 420 | | |
417 | 421 | | |
418 | 422 | | |
| |||
605 | 609 | | |
606 | 610 | | |
607 | 611 | | |
| 612 | + | |
| 613 | + | |
608 | 614 | | |
609 | 615 | | |
610 | 616 | | |
| |||
Lines changed: 88 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
328 | 340 | | |
329 | 341 | | |
330 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
798 | 804 | | |
799 | 805 | | |
800 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
801 | 821 | | |
802 | 822 | | |
803 | 823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments