mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Add pod delete control
- Push shortcut reports when pods are created/deleted - Buffer upto 2 reports instead of dropping them
This commit is contained in:
@@ -49,7 +49,7 @@ func (r *registry) unpauseContainer(containerID string, _ xfer.Request) xfer.Res
|
||||
return xfer.ResponseError(r.client.UnpauseContainer(containerID))
|
||||
}
|
||||
|
||||
func (r *registry) removeContainer(containerID string, _ xfer.Request) xfer.Response {
|
||||
func (r *registry) removeContainer(containerID string, req xfer.Request) xfer.Response {
|
||||
log.Infof("Removing container %s", containerID)
|
||||
if err := r.client.RemoveContainer(docker_client.RemoveContainerOptions{
|
||||
ID: containerID,
|
||||
@@ -57,7 +57,7 @@ func (r *registry) removeContainer(containerID string, _ xfer.Request) xfer.Resp
|
||||
return xfer.ResponseError(err)
|
||||
}
|
||||
return xfer.Response{
|
||||
RemovedNode: containerID,
|
||||
RemovedNode: req.NodeID,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user