wilfred-s commented on code in PR #75:
URL:
https://github.com/apache/yunikorn-scheduler-interface/pull/75#discussion_r1011294681
##########
scheduler-interface-spec.md:
##########
@@ -774,19 +774,14 @@ message UpdateContainerSchedulingStateRequest {
}
message UpdateConfigurationRequest {
- // New config what needs to be saved
- string configs = 1;
-}
-
-message UpdateConfigurationResponse {
- // flag that marks the config update success or failure
- bool success = 1;
+ // RM ID to update
+ string rmID = 1;
- // the old configuration what was changed
- string oldConfig = 2;
+ // PolicyGroup to update
+ string policyGroup = 2;
- // reason in case of failure
- string reason = 3;
+ // New configuration to update
+ bytes config = 3;
Review Comment:
Can we do this backward compatible and use `reserved` field number and name
to indicate that one has been used. Start the new field count from 2.
I know this is overhead but lets keep it clean:
```
reserved 1;
reserved "configs";
```
##########
scheduler-interface-spec.md:
##########
@@ -233,6 +230,9 @@ message RegisterResourceManagerRequest {
// Pass the build information of k8shim to core.
map<string, string> buildInfo = 4;
+
+ // Pass the serialized configuration for this policyGroup to core.
+ bytes config = 5;
Review Comment:
The yaml that we use for the config should never contain anything that
cannot be represented as a normal UTF8 character. For compatibility we should
use a simple `string` type. We do not want to support arbitrary binary values
in the message.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]