Skip to content

Commit

Permalink
feat: add SchedulerClusterId to host message in v2 proto (#167)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Aug 21, 2023
1 parent acf9a4e commit b8791ff
Show file tree
Hide file tree
Showing 11 changed files with 330 additions and 330 deletions.
426 changes: 219 additions & 207 deletions pkg/apis/common/v2/common.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pkg/apis/common/v2/common.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/common/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ message Host {
optional Disk disk = 15;
// Build information.
optional Build build = 16;
// ID of the cluster to which the host belongs.
uint64 scheduler_cluster_id = 17;
}

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

Large diffs are not rendered by default.

2 changes: 0 additions & 2 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: 0 additions & 2 deletions pkg/apis/scheduler/v2/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ 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
2 changes: 2 additions & 0 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ message Host {
optional Disk disk = 15;
// Build information.
optional Build build = 16;
// ID of the cluster to which the host belongs.
uint64 scheduler_cluster_id = 17;
}

// CPU Stat.
Expand Down
2 changes: 0 additions & 2 deletions proto/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ message StatTaskRequest {
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
3 changes: 3 additions & 0 deletions src/common.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ pub struct Host {
/// Build information.
#[prost(message, optional, tag = "16")]
pub build: ::core::option::Option<Build>,
/// ID of the cluster to which the host belongs.
#[prost(uint64, tag = "17")]
pub scheduler_cluster_id: u64,
}
/// CPU Stat.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
3 changes: 0 additions & 3 deletions src/scheduler.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,6 @@ 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

0 comments on commit b8791ff

Please sign in to comment.