eclipse-ankaios / ankaios

Eclipse Ankaios provides workload and container orchestration for automotive High Performance Computing (HPC) software.
https://eclipse-ankaios.github.io/ankaios/
Apache License 2.0
60 stars 18 forks source link

Create a concept for yaml/json interface of Ankaios #313

Open krucod3 opened 1 month ago

krucod3 commented 1 month ago

Description

Currently the server and the ank CLI read a text based configuration (manifest). The CLI can also output the current configuration as json/yaml. The serialization/deserialization is achieved by tagging some Rust structs with serde attributes.

Since optional data sent over gRPC should be empty and not filled with defaults, we switched to only using the protoBug generated objects in #22. Annotating them correctly to get a proper result is very hard are required manual serialization for enums. As a workaround we switch to a special objects for the serialization.

We have to unify all objects and develop a strategy how we define our interfaces. At the end we need schemas for the json/yaml data s.t. we are sure the API is fixed.

Goals

Final result

Summary

To be filled when the final solution is sketched.

Tasks

inf17101 commented 1 month ago

For these two requirements there is no impl and test linked (this fits here to the interfaces, we need a verification scheme and tests):