Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add scheduler cluster id in AnnounceHostRequest #166

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
386 changes: 199 additions & 187 deletions pkg/apis/scheduler/v1/scheduler.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pkg/apis/scheduler/v1/scheduler.pb.validate.go

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

2 changes: 2 additions & 0 deletions pkg/apis/scheduler/v1/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ message AnnounceHostRequest{
Disk disk = 15 [(validate.rules).message.required = true];
// Build information.
Build build = 16 [(validate.rules).message.required = true];
// ID of the cluster to which the host belongs.
uint64 scheduler_cluster_id = 17;
}

// CPU Stat.
Expand Down
216 changes: 114 additions & 102 deletions pkg/apis/scheduler/v2/scheduler.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pkg/apis/scheduler/v2/scheduler.pb.validate.go

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

2 changes: 2 additions & 0 deletions pkg/apis/scheduler/v2/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ message StatTaskRequest {
message AnnounceHostRequest {
// Host info.
common.v2.Host host = 1 [(validate.rules).message.required = true];
// ID of the cluster to which the host belongs.
uint64 scheduler_cluster_id = 2;
}

// LeaveHostRequest represents request of LeaveHost.
Expand Down
3 changes: 3 additions & 0 deletions proto/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ message StatTaskRequest {

// AnnounceHostRequest represents request of AnnounceHost.
message AnnounceHostRequest {
// Host information.
common.v2.Host host = 1;
// ID of the cluster to which the host belongs.
uint64 scheduler_cluster_id = 2;
}

// LeaveHostRequest represents request of LeaveHost.
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
4 changes: 4 additions & 0 deletions src/scheduler.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,12 @@ pub struct StatTaskRequest {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnnounceHostRequest {
/// Host information.
#[prost(message, optional, tag = "1")]
pub host: ::core::option::Option<super::super::common::v2::Host>,
/// ID of the cluster to which the host belongs.
#[prost(uint64, tag = "2")]
pub scheduler_cluster_id: u64,
}
/// LeaveHostRequest represents request of LeaveHost.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
Loading