Merge pull request #3183 from weaveworks/k10-fix

Fix pause image detection for Kubernetes 1.10
This commit is contained in:
Stefan Prodan
2018-05-19 15:43:23 +03:00
committed by GitHub

View File

@@ -183,8 +183,8 @@ func (r *Reporter) podEvent(e Event, pod Pod) {
// IsPauseImageName indicates whether an image name corresponds to a
// kubernetes pause container image.
func IsPauseImageName(imageName string) bool {
return strings.Contains(imageName, "google_containers/pause")
return strings.Contains(imageName, "google_containers/pause") ||
strings.Contains(imageName, "k8s.gcr.io/pause")
}
func isPauseContainer(n report.Node, rpt report.Report) bool {