phenixblue / imageswap-webhook

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

library images with docker.io defined failed to replace correctly #119

Open daniel-anova opened 1 month ago

daniel-anova commented 1 month ago

What happened:

When there a library image with docker.io domain defined the replacement fails.

What you expected to happen:

The image to be replaced correctly like library images without docker.io domain defined

How to reproduce it (as minimally and precisely as possible):

define an image as docker.io/bash:latest

set replacement rule for docker.io and docker.io/library

Anything else we need to know?:

I've submitted a PR with a fix

Environment: