Skip to content

Commit

Permalink
refine node label filter name
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 6ef46f9 commit f06e714
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 44 deletions.
83 changes: 41 additions & 42 deletions go-api/rgpb/rg.pb.go

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

4 changes: 2 additions & 2 deletions proto/rg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ message ResourceGroupTransfer {
}

message ResourceGroupNodeFilter {
repeated common.KeyValuePair prefer_node_labels = 1; // node in resource group must match node labels requirements
repeated common.KeyValuePair node_labels = 1; // node in resource group must match node labels requirements
}

message ResourceGroupConfig {
ResourceGroupLimit requests = 1; // requests node num in resource group, if node num is less than requests.nodeNum, it will be transfer from other resource group.
ResourceGroupLimit limits = 2; // limited node num in resource group, if node num is more than limits.nodeNum, it will be transfer to other resource group.
repeated ResourceGroupTransfer transfer_from = 3; // missing node should be transfer from given resource group at high priority in repeated list.
repeated ResourceGroupTransfer transfer_to = 4; // redundant node should be transfer to given resource group at high priority in repeated list.
ResourceGroupNodeFilter node_filter = 5; // node in resource group must match node filters, otherwise node should be move out
ResourceGroupNodeFilter node_filter = 5; // node in resource group must match node filters
}

0 comments on commit f06e714

Please sign in to comment.