Files
Ping DaiandGitHub 491c488fd6 [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]>
2025-09-06 11:03:26 -07:00
..
2025-07-03 16:48:23 -07:00

Protocol Buffer API Definitions

This directory contains API definitions written in Protocol Buffers. These definitions will be used for building services.

Prerequisites

To successfully run the generation commands, ensure the following tools are installed in your environment:

Run the following command to build the proto-generator image. This image will be used for generating APIs:

Note: You can actually skip this step, and a prebuilt image will be downloaded instead.

make build-image

Automatic Generation

Go Client and Swagger

make generate

Clients

We postpone the client generation until there is a need for external service communication.

API Reference Documentation

Use the tools bootprint-openapi and html-inline to generate API reference documentation from the Swagger files. For more information on the API and architecture, refer to the design document.

Third-Party Protos

Third-party proto dependencies are synchronized back to proto/third_party for easier development (IDE friendly). Ideally, the directory for searching imports should be specified instead.

protoc -I.
    -I/go/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
    -I/go/src/github.com/grpc-ecosystem/grpc-gateway/ \
    -I/go/src/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/ \

Sources: