Commit 491c488
authored
[Feature][APIServer] Support decimal memory values in KubeRay APIServer (#3956)
* [Add] Newly added support for configuring calculation templates to handle decimal numbers
Signed-off-by: daiping8 <[email protected]>
* [Update] Modified memory field type to integer and added optional memory unit in ComputeTemplate
Signed-off-by: daiping8 <[email protected]>
* [Update] Added `MemoryUnit` field to `ComputeTemplate` in E2E tests to support memory unit specification
Signed-off-by: daiping8 <[email protected]>
* [Update] Added memory unit field `CompTemplateMemUnitForE2E` to enhance E2E test configurations
Signed-off-by: daiping8 <[email protected]>
* [Update] Added `memory_unit` field in `converter_test.go` for extended E2E test coverage
Signed-off-by: daiping8 <[email protected]>
* [Update] Applied default `memory_unit` handling in `converter.go` and updated E2E tests for consistency
Signed-off-by: daiping8 <[email protected]>
* [Update] Adjusted E2E test to handle default `MemoryUnit` in `ComputeTemplate` and ensure compatibility
Signed-off-by: daiping8 <[email protected]>
* [Update] Replaced protobuf cloning with explicit struct initialization in E2E test to enhance clarity and removed unused import
Signed-off-by: daiping8 <[email protected]>
* [Update] Added logging for expected and actual templates in E2E test to improve debugging clarity
Signed-off-by: daiping8 <[email protected]>
* [Update] Removed default `MemoryUnit` assignment logic from `converter.go` and cleaned up related tests and configurations
Signed-off-by: daiping8 <[email protected]>
---------
Signed-off-by: daiping8 <[email protected]>1 parent b5c6b0a commit 491c488
File tree
10 files changed
+238
-162
lines changed- apiserver
- pkg
- model
- util
- test/e2e
- proto
- go_client
- swagger
10 files changed
+238
-162
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
157 | 172 | | |
158 | 173 | | |
159 | 174 | | |
| |||
674 | 689 | | |
675 | 690 | | |
676 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
677 | 697 | | |
678 | 698 | | |
679 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
436 | | - | |
| 437 | + | |
| 438 | + | |
437 | 439 | | |
438 | 440 | | |
439 | 441 | | |
| |||
847 | 849 | | |
848 | 850 | | |
849 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
850 | 863 | | |
851 | 864 | | |
852 | 865 | | |
853 | 866 | | |
854 | 867 | | |
855 | 868 | | |
856 | | - | |
| 869 | + | |
| 870 | + | |
857 | 871 | | |
858 | 872 | | |
859 | 873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
127 | 146 | | |
128 | 147 | | |
129 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments