Ignore intermediate images (#3264)

This commit is contained in:
Joakim Sørensen 2021-10-26 00:06:26 +02:00 committed by GitHub
parent 4c9cbb112e
commit f38cde4c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ UNHEALTHY_IMAGES = [
"watchtower",
"ouroboros",
]
IGNORE_IMAGES = ["sha256"]
def setup(coresys: CoreSys) -> EvaluateBase:
@ -71,7 +72,7 @@ class EvaluateContainer(EvaluateBase):
self.sys_resolution.evaluate.cached_images.add(image)
image_name = image.partition(":")[0]
if image_name not in self.known_images:
if image_name not in IGNORE_IMAGES and image_name not in self.known_images:
self._images.add(image_name)
if any(
image_name.split("/")[-1].startswith(unhealthy)