Skip to content

Commit

Permalink
support node label format with key value pair
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
weiliu1031 committed Oct 21, 2024
1 parent 4145fbf commit 822a966
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 58 deletions.
188 changes: 131 additions & 57 deletions go-api/rgpb/rg.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion proto/rg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ message ResourceGroupTransfer {
// preserve for other option, such as weight, priority or affinity setup.
}

message NodeLabel {
string key = 1;
string value = 2;
}

message ResourceGroupNodeFilter {
repeated string prefer_node_labels = 1; // node in resource group must match node labels requirements
repeated NodeLabel prefer_node_labels = 1; // node in resource group must match node labels requirements
}

message ResourceGroupConfig {
Expand Down

0 comments on commit 822a966

Please sign in to comment.