Skip to content

Conversation

itsteddyyo
Copy link

What

This PR switches image name/tag checks to use github.com/distribution/reference. This should be a more robust solution and handle edge cases better than the current strings.Split approach 😄.

Why

With the current implementation, Popeye flagged certain namespaced images as coming from a non-allowed registry, even when no registry was explicitly provided (which should default to docker.io). This led to false positives for me.

Notes

I’ve added tests that highlight the cases which were parsed incorrectly before, so it should be clearer what’s fixed now.

Thanks a lot for taking a look!

P.S. I reopened this PR because my initial tests were misleading — they were passing even without my changes. I realized the wrong method was being called in the test, so I’ve included that fix here as well 😅. Sorry for the extra notification spam!

more rubust solution that handles images with namespaces correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant