Skip to content

Commit

Permalink
feat: use scheduler's cluster id in host resource (#2844)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Oct 31, 2023
1 parent 4a161e4 commit 6caf724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scheduler/service/service_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func (v *V1) AnnounceHost(ctx context.Context, req *schedulerv1.AnnounceHostRequ
}

if req.GetSchedulerClusterId() != 0 {
options = append(options, resource.WithSchedulerClusterID(req.GetSchedulerClusterId()))
options = append(options, resource.WithSchedulerClusterID(uint64(v.config.Manager.SchedulerClusterID)))
}

if req.GetObjectStoragePort() != 0 {
Expand Down
2 changes: 1 addition & 1 deletion scheduler/service/service_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func (v *V2) AnnounceHost(ctx context.Context, req *schedulerv2.AnnounceHostRequ
}

if req.Host.GetSchedulerClusterId() != 0 {
options = append(options, resource.WithSchedulerClusterID(req.Host.GetSchedulerClusterId()))
options = append(options, resource.WithSchedulerClusterID(uint64(v.config.Manager.SchedulerClusterID)))
}

if req.Host.GetObjectStoragePort() != 0 {
Expand Down

0 comments on commit 6caf724

Please sign in to comment.