deckhouse / k8s-image-availability-exporter

Alert if an image used in Kubernetes cannot be pulled from container registry
Apache License 2.0
212 stars 25 forks source link

Broken ignored-images regex matching #52

Closed verdel closed 2 years ago

verdel commented 2 years ago

In v0.3.0 the behavior of the --ignored-images flag has been changed to regex matching.

But in for loop continue statement is applied to the loop with an array of regex expressions, not for loop of images.

https://github.com/deckhouse/k8s-image-availability-exporter/blob/62ab8893143fd4d434d48a7ac8ae6df782c92a5e/pkg/registry_checker/checker.go#L205-L210

As a result, regex expressions are actually ignored.