Skip to content

Commit

Permalink
agent group flag for introspeciton commands (#2826)
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Lakhwani <[email protected]>
  • Loading branch information
sahil-lakhwani authored Oct 19, 2023
1 parent 50c8969 commit 5f7c26b
Show file tree
Hide file tree
Showing 19 changed files with 819 additions and 380 deletions.
10 changes: 8 additions & 2 deletions api/aperture/cmd/v1/cmd.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "google/protobuf/empty.proto";

// Controller describes APIs of the controller from the aperturectl POV
service Controller {
rpc ListAgents(google.protobuf.Empty) returns (ListAgentsResponse);
rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse);
rpc ListServices(ListServicesRequest) returns (ListServicesControllerResponse);
rpc ListFlowControlPoints(ListFlowControlPointsRequest) returns (ListFlowControlPointsControllerResponse);
rpc ListAutoScaleControlPoints(ListAutoScaleControlPointsRequest) returns (ListAutoScaleControlPointsControllerResponse);
Expand Down Expand Up @@ -74,7 +74,9 @@ message ListAutoScaleControlPointsControllerResponse {
uint32 errors_count = 2;
}

message ListDiscoveryEntitiesRequest {}
message ListDiscoveryEntitiesRequest {
string agent_group = 1;
}

message ListDiscoveryEntitiesAgentResponse {
map<string, aperture.discovery.entities.v1.Entity> entities = 1;
Expand All @@ -96,6 +98,10 @@ message ListDiscoveryEntityAgentResponse {
aperture.discovery.entities.v1.Entity entity = 1;
}

message ListAgentsRequest {
string agent_group = 1;
}

message ListAgentsResponse {
repeated string agents = 1;
}
Expand Down
737 changes: 406 additions & 331 deletions api/gen/proto/go/aperture/cmd/v1/cmd.pb.go

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions api/gen/proto/go/aperture/cmd/v1/cmd.pb.json.go

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

106 changes: 106 additions & 0 deletions api/gen/proto/go/aperture/cmd/v1/cmd.pb.validate.go

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

12 changes: 6 additions & 6 deletions api/gen/proto/go/aperture/cmd/v1/cmd_grpc.pb.go

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

Loading

0 comments on commit 5f7c26b

Please sign in to comment.