Don't merge in container image metadata into containers anymore.

This commit is contained in:
Tom Wilkie
2016-05-13 11:15:24 +01:00
parent fc018afb52
commit 4674d45c1a
+4 -4
View File
@@ -62,9 +62,8 @@ type containerWithImageNameRenderer struct {
Renderer
}
// Render produces a process graph where the minor labels contain the
// container name, if found. It also merges the image node metadata into the
// container metadata.
// Render produces a container graph where the the latest metadata contains the
// container image name, if found.
func (r containerWithImageNameRenderer) Render(rpt report.Report, dct Decorator) report.Nodes {
containers := r.Renderer.Render(rpt, dct)
images := SelectContainerImage.Render(rpt, dct)
@@ -81,7 +80,8 @@ func (r containerWithImageNameRenderer) Render(rpt report.Report, dct Decorator)
continue
}
output := c.Copy()
output.Latest = image.Latest.Merge(c.Latest)
output = propagateLatest(docker.ImageName, image, output)
output = propagateLatest(docker.ImageLabelPrefix+"works.weave.role", image, output)
outputs[id] = output
}
return outputs