Add EKS to paused container detection

fix #3259
This commit is contained in:
Stefan Prodan
2018-11-09 13:48:11 +02:00
committed by GitHub
parent 62d55596c6
commit 717cb13a84

View File

@@ -237,7 +237,8 @@ func (r *Reporter) podEvent(e Event, pod Pod) {
// kubernetes pause container image.
func IsPauseImageName(imageName string) bool {
return strings.Contains(imageName, "google_containers/pause") ||
strings.Contains(imageName, "k8s.gcr.io/pause")
strings.Contains(imageName, "k8s.gcr.io/pause") ||
strings.Contains(imageName, "eks/pause")
}
func isPauseContainer(n report.Node, rpt report.Report) bool {