mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-18 06:40:25 +08:00
可以在创建、修改节点的时候选择分组,可以根据分组筛选节点
This commit is contained in:
@@ -43,6 +43,7 @@ func (this *CreateNodeAction) RunPost(params struct {
|
||||
Name string
|
||||
IpAddressesJSON []byte
|
||||
ClusterId int64
|
||||
GroupId int64
|
||||
GrantId int64
|
||||
SshHost string
|
||||
SshPort int
|
||||
@@ -78,6 +79,7 @@ func (this *CreateNodeAction) RunPost(params struct {
|
||||
createResp, err := this.RPC().NodeRPC().CreateNode(this.AdminContext(), &pb.CreateNodeRequest{
|
||||
Name: params.Name,
|
||||
ClusterId: params.ClusterId,
|
||||
GroupId: params.GroupId,
|
||||
Login: loginInfo,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user