phenixblue / imageswap-webhook

Image Swap Mutating Admission Webhook for Kubernetes
Apache License 2.0
154 stars 53 forks source link

fix: 🐛 Add special case were registry is defined for library image #120

Open daniel-anova opened 2 months ago

daniel-anova commented 2 months ago

What type of PR is this?

/kind bug

What this PR does / why we need it:

This handles a special case when a library image is defined while still having docker.io domain defined.

Example: docker.io/bash:latest

Which issue(s) this PR fixes:

Fixes #119

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

- handle docker library images correctly when domain is defined

Additional documentation e.g., usage docs, etc.: