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
[Server] support agent remote command #6392
base: main
Are you sure you want to change the base?
Conversation
a6de7ac
to
b199377
Compare
940fceb
to
de1ef23
Compare
) | ||
|
||
var ( | ||
AgentRemoteExecMap = make(map[string]*CMDManager) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
考虑并发
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
LinuxNamespaceDoneCH: make(chan struct{}, 1), | ||
|
||
resp: &model.RemoteExecResp{}, | ||
stream: stream, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stream传过来 要做啥处理
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
冗余的,没用到,我删除下
de1ef23
to
a7c2a95
Compare
log.Errorf("failed to receive the initial message: %v", err) | ||
return err | ||
} | ||
key := resp.AgentId.GetIp() + "-" + resp.AgentId.GetMac() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个key要org-id么
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
也可以,方便日志输出排查
9dd3dee
to
3f38d8a
Compare
9747d12
to
8c6ccc7
Compare
8c6ccc7
to
50ab9dd
Compare
This PR is for: