-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add proto for operator Cluster endpoints
- Loading branch information
1 parent
e0abed4
commit 0f60814
Showing
5 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
syntax = "proto3"; | ||
|
||
package api.v1.operator.cluster; | ||
|
||
import "model/metrics.proto"; | ||
|
||
service Service { | ||
rpc GetNodes(GetNodesRequest) returns (GetNodesResponse) {} | ||
rpc GetNodePods(GetNodePodsRequest) returns (GetNodePodsResponse) {} | ||
} | ||
|
||
message GetNodesRequest {} | ||
|
||
message GetNodesResponse { | ||
repeated Node nodes = 1; | ||
} | ||
|
||
message Node { | ||
string node_name = 1; | ||
model.Resources allocateable = 2; | ||
model.Resources usage = 3; | ||
uint64 max_pods = 4; | ||
} | ||
|
||
message GetNodePodsRequest { | ||
string node_name = 1; | ||
} | ||
|
||
message GetNodePodsResponse { | ||
repeated Pod pods = 1; | ||
} | ||
|
||
message Pod { | ||
string pod_name = 1; | ||
string namespace = 2; | ||
model.Resources requested = 3; | ||
string capsule_name = 4; | ||
} |