Skip to content

Commit

Permalink
pause-container: extend the regex to catch region based. (#3674)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienBalestra authored and hush-hush committed Feb 13, 2018
1 parent 7fd6e7d commit 0ec2446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/core/test_dockerutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def test_docker_are_tags_filtered(self):
self.assertTrue(du.is_k8s())
pause_containers = [
"docker_image:gcr.io/google_containers/pause-amd64:0.3.0",
"docker_image:asia.gcr.io/google_containers/pause-amd64:3.0",
"docker_image:k8s.gcr.io/pause-amd64:latest",
"image_name:openshift/origin-pod",
"image_name:kubernetes/pause",
Expand Down
4 changes: 2 additions & 2 deletions utils/dockerutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class CGroupException(Exception):

# only used if no exclude rule was defined
DEFAULT_CONTAINER_EXCLUDE = [
"docker_image:gcr.io/google_containers/pause.*",
"docker_image:k8s.gcr.io/pause.*",
"docker_image:(.*)gcr.io/google_containers/pause(.*)",
"docker_image:k8s.gcr.io/pause(.*)",
"image_name:openshift/origin-pod",
"image_name:kubernetes/pause"
]
Expand Down

0 comments on commit 0ec2446

Please sign in to comment.