mirror of
https://github.com/docker/docs.git
synced 2026-10-31 10:34:26 +03:00
add a "node_connect" custom event when a node joins the cluster
Signed-off-by: mountkin <mountkin@gmail.com>
This commit is contained in:
@@ -90,6 +90,7 @@ func (n *Node) connectClient(client dockerclient.Client) error {
|
||||
|
||||
// Start monitoring events from the Node.
|
||||
n.client.StartMonitorEvents(n.handler)
|
||||
n.emitCustomEvent("node_connect")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user